[Python-checkins] r80638 - sandbox/trunk/2to3/lib2to3/fixes/fix_sys_exc.py

benjamin.peterson python-checkins at python.org
Thu Apr 29 23:05:34 CEST 2010


Author: benjamin.peterson
Date: Thu Apr 29 23:05:34 2010
New Revision: 80638

Log:
unicode literals

Modified:
   sandbox/trunk/2to3/lib2to3/fixes/fix_sys_exc.py

Modified: sandbox/trunk/2to3/lib2to3/fixes/fix_sys_exc.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/fixes/fix_sys_exc.py	(original)
+++ sandbox/trunk/2to3/lib2to3/fixes/fix_sys_exc.py	Thu Apr 29 23:05:34 2010
@@ -13,7 +13,7 @@
 
 class FixSysExc(fixer_base.BaseFix):
     # This order matches the ordering of sys.exc_info().
-    exc_info = ["exc_type", "exc_value", "exc_traceback"]
+    exc_info = [u"exc_type", u"exc_value", u"exc_traceback"]
     PATTERN = """
               power< 'sys' trailer< dot='.' attribute=(%s) > >
               """ % '|'.join("'%s'" % e for e in exc_info)


More information about the Python-checkins mailing list