~ubuntu-branches/ubuntu/karmic/python3.0/karmic

« 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: 2009-02-16 17:18:23 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090216171823-1d5cm5qnnjvmnzzm
Tags: 3.0.1-0ubuntu1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
# Local imports
9
9
from .. import pytree
10
10
from .. import fixer_base
11
 
from ..fixer_util import Name, Attr
 
11
from ..fixer_util import Name, Attr, touch_import
12
12
 
13
13
 
14
14
class FixIntern(fixer_base.BaseFix):
40
40
                                        newarglist,
41
41
                                        results["rpar"].clone()])] + after)
42
42
        new.set_prefix(node.get_prefix())
 
43
        touch_import(None, 'sys', node)
43
44
        return new