ThirdParty/Pygments/pygments/lexer.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2426
da76c71624de
child 2669
11a6696ff868
--- a/ThirdParty/Pygments/pygments/lexer.py	Sun Mar 24 13:52:12 2013 +0100
+++ b/ThirdParty/Pygments/pygments/lexer.py	Mon Mar 25 03:11:06 2013 +0100
@@ -8,6 +8,12 @@
     :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
     :license: BSD, see LICENSE for details.
 """
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+try:
+    str = unicode
+except (NameError):
+    pass
+
 import re, itertools
 
 from pygments.filter import apply_filters, Filter

eric ide

mercurial