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

« back to all changes in this revision

Viewing changes to Lib/lib2to3/fixes/fix_filter.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:
60
60
                           results.get("xp").clone())
61
61
 
62
62
        elif "none" in results:
63
 
            new = ListComp(Name("_f"),
64
 
                           Name("_f"),
 
63
            new = ListComp(Name(u"_f"),
 
64
                           Name(u"_f"),
65
65
                           results["seq"].clone(),
66
 
                           Name("_f"))
 
66
                           Name(u"_f"))
67
67
 
68
68
        else:
69
69
            if in_special_context(node):
70
70
                return None
71
71
            new = node.clone()
72
 
            new.set_prefix("")
73
 
            new = Call(Name("list"), [new])
74
 
        new.set_prefix(node.get_prefix())
 
72
            new.prefix = u""
 
73
            new = Call(Name(u"list"), [new])
 
74
        new.prefix = node.prefix
75
75
        return new