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

« back to all changes in this revision

Viewing changes to Lib/lib2to3/fixes/fix_intern.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:
34
34
        if after:
35
35
            after = [n.clone() for n in after]
36
36
        new = pytree.Node(syms.power,
37
 
                          Attr(Name("sys"), Name("intern")) +
 
37
                          Attr(Name(u"sys"), Name(u"intern")) +
38
38
                          [pytree.Node(syms.trailer,
39
39
                                       [results["lpar"].clone(),
40
40
                                        newarglist,
41
41
                                        results["rpar"].clone()])] + after)
42
 
        new.set_prefix(node.get_prefix())
43
 
        touch_import(None, 'sys', node)
 
42
        new.prefix = node.prefix
 
43
        touch_import(None, u'sys', node)
44
44
        return new