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

« back to all changes in this revision

Viewing changes to Lib/lib2to3/fixes/fix_buffer.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:
13
13
    explicit = True # The user must ask for this fixer
14
14
 
15
15
    PATTERN = """
16
 
              power< name='buffer' trailer< '(' [any] ')' > >
 
16
              power< name='buffer' trailer< '(' [any] ')' > any* >
17
17
              """
18
18
 
19
19
    def transform(self, node, results):
20
20
        name = results["name"]
21
 
        name.replace(Name("memoryview", prefix=name.get_prefix()))
 
21
        name.replace(Name(u"memoryview", prefix=name.prefix))