summaryrefslogtreecommitdiff
path: root/pygments/unistring.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/unistring.py')
-rw-r--r--pygments/unistring.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pygments/unistring.py b/pygments/unistring.py
index da87b6df..2752037f 100644
--- a/pygments/unistring.py
+++ b/pygments/unistring.py
@@ -11,7 +11,8 @@
:copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from pygments.util import u_prefix
+
+from pygments.util import u_prefix, unichr
Cc = u'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x7f\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f'
@@ -133,7 +134,7 @@ except UnicodeDecodeError:
Cs = '' # Jython can't handle isolated surrogates\n\n""" % repr(val).lstrip('u'))
else:
f.write('%s = %r\n\n' % (cat, val))
- f.write('cats = %r\n\n' % sorted(categories.keys()))
+ f.write('cats = %r\n\n' % sorted(categories))
f.write('# Generated from unidata %s\n\n' % (unicodedata.unidata_version,))
f.write(footer)