add template for directives

This commit is contained in:
mhoffm
2021-09-17 20:53:40 +02:00
committed by Michael Hoffmann
parent 67a5c19755
commit c0513ba689
1582 changed files with 28118 additions and 16805 deletions

View File

@@ -30,9 +30,8 @@ def main():
for lit in sorted(literals):
if lit:
print '// %s' % lit
print '"%s"' % ''.join(['\\x%02x' % ord(b) for b in lit.encode('utf-8')])
print
print('"{}"'.format(lit))
if __name__ == '__main__':
main()