ThirdParty/Pygments/pygments/unistring.py

branch
Py2 comp.
changeset 2669
11a6696ff868
parent 2525
8b507a9a2d40
child 3145
a9de05d4a22f
--- a/ThirdParty/Pygments/pygments/unistring.py	Sun Apr 21 20:30:56 2013 +0200
+++ b/ThirdParty/Pygments/pygments/unistring.py	Thu May 23 19:58:41 2013 +0200
@@ -12,6 +12,10 @@
     :license: BSD, see LICENSE for details.
 """
 from __future__ import unicode_literals    # __IGNORE_WARNING__
+try: 
+    chr = unichr
+except (NameError):
+    pass
 
 from pygments.util import u_prefix
 

eric ide

mercurial