From 00551f972e22351a55f7c9e84df6469687b674d9 Mon Sep 17 00:00:00 2001 From: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Date: Tue, 9 Feb 2021 22:47:07 +0100 Subject: Improve documentation for unidecode (#16986) * Improve documentation for unidecode Minor changes to gen.py * Fix typo in gen.py --- lib/pure/unidecode/gen.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/pure/unidecode/gen.py') 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() -- cgit 1.4.1-2-gfad0