~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Lib/lib2to3/fixes/fix_sys_exc.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
        sys_attr = results["attribute"][0]
23
23
        index = Number(self.exc_info.index(sys_attr.value))
24
24
 
25
 
        call = Call(Name("exc_info"), prefix=sys_attr.get_prefix())
26
 
        attr = Attr(Name("sys"), call)
27
 
        attr[1].children[0].set_prefix(results["dot"].get_prefix())
 
25
        call = Call(Name(u"exc_info"), prefix=sys_attr.prefix)
 
26
        attr = Attr(Name(u"sys"), call)
 
27
        attr[1].children[0].prefix = results["dot"].prefix
28
28
        attr.append(Subscript(index))
29
 
        return Node(syms.power, attr, prefix=node.get_prefix())
 
29
        return Node(syms.power, attr, prefix=node.prefix)