diff options
Diffstat (limited to 'lib/pure/unidecode/gen.py')
-rw-r--r-- | lib/pure/unidecode/gen.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/pure/unidecode/gen.py b/lib/pure/unidecode/gen.py index f0647ea6c..0b180a381 100644 --- a/lib/pure/unidecode/gen.py +++ b/lib/pure/unidecode/gen.py @@ -11,7 +11,7 @@ try: except ImportError: pass -def main2(): +def main(): f = open("unidecode.dat", "wb+") for x in range(128, 0xffff + 1): u = eval("u'\\u%04x'" % x) @@ -19,12 +19,12 @@ def main2(): val = unidecode(u) # f.write("%x | " % x) - if x==0x2028: # U+2028 = LINE SEPARATOR + if x == 0x2028: # U+2028 = LINE SEPARATOR val = "" - elif x==0x2029: # U+2028 = PARAGRAPH SEPARATOR + elif x == 0x2029: # U+2029 = PARAGRAPH SEPARATOR val = "" f.write("%s\n" % val) f.close() -main2() \ No newline at end of file +main() |