summaryrefslogtreecommitdiff
path: root/Lib/lib2to3/fixes
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-05-22 18:52:21 +0000
committerBenjamin Peterson <benjamin@python.org>2010-05-22 18:52:21 +0000
commitfeaa6b9c1f619c5c4c5adebb7139fe5f676d08f6 (patch)
treeb5b92a40272c986754c6a1cc2d8352488dc23b7e /Lib/lib2to3/fixes
parent05509e63891b6bb97ff67b43d0b9b1c5b3e061b8 (diff)
downloadcpython-feaa6b9c1f619c5c4c5adebb7139fe5f676d08f6.tar.gz
Merged revisions 80937,81478 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........ r80937 | benjamin.peterson | 2010-05-07 14:10:58 -0500 (Fri, 07 May 2010) | 1 line remove redundant unicode call ........ r81478 | benjamin.peterson | 2010-05-22 13:47:39 -0500 (Sat, 22 May 2010) | 1 line ensure doctests have some future_features ........
Diffstat (limited to 'Lib/lib2to3/fixes')
-rw-r--r--Lib/lib2to3/fixes/fix_sys_exc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib2to3/fixes/fix_sys_exc.py b/Lib/lib2to3/fixes/fix_sys_exc.py
index 58bbabbc44..348929bb6e 100644
--- a/Lib/lib2to3/fixes/fix_sys_exc.py
+++ b/Lib/lib2to3/fixes/fix_sys_exc.py
@@ -20,7 +20,7 @@ class FixSysExc(fixer_base.BaseFix):
def transform(self, node, results):
sys_attr = results["attribute"][0]
- index = Number(unicode(self.exc_info.index(sys_attr.value)))
+ index = Number(self.exc_info.index(sys_attr.value))
call = Call(Name(u"exc_info"), prefix=sys_attr.prefix)
attr = Attr(Name(u"sys"), call)