summary refs log tree commit diff stats
path: root/lib/pure/unidecode/gen.py
diff options
context:
space:
mode:
authorkonsumlamm <44230978+konsumlamm@users.noreply.github.com>2021-02-09 22:47:07 +0100
committerGitHub <noreply@github.com>2021-02-09 22:47:07 +0100
commit00551f972e22351a55f7c9e84df6469687b674d9 (patch)
treef6c27a2fe395cda8483b1bc1542a2025045e63b3 /lib/pure/unidecode/gen.py
parent635c0b6cb9c225a247ab2aeb136458c14fb711e8 (diff)
downloadNim-00551f972e22351a55f7c9e84df6469687b674d9.tar.gz
Improve documentation for unidecode (#16986)
* Improve documentation for unidecode

Minor changes to gen.py

* Fix typo in gen.py
Diffstat (limited to 'lib/pure/unidecode/gen.py')
-rw-r--r--lib/pure/unidecode/gen.py8
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()