Anonymous committed 6fba184

encode source code for parsing only on python 2.x

Comments (0)

Files changed (1)


         if sys.version_info >= (2, 5):
             src = 'from __future__ import with_statement\n' + src
-        if isinstance(src, unicode):
+        if sys.version_info < (3, 0) and isinstance(src, unicode):
             # Non-ASCII chars will only occur in string literals
             # and comments.  If we wanted to give them to the parser
             # correctly, we'd have to find out the correct source