~pythonregexp2.7/python/issue2636-24

« back to all changes in this revision

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

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-21 13:47:31 UTC
  • mfrom: (39021.1.404 Regexp-2.7)
  • Revision ID: darklord@timehorse.com-20080921134731-rudomuzeh1b2tz1y
Merged in changes from the latest python source snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Author: Andre Roberge
3
3
 
4
4
# Local imports
5
 
from . import basefix
6
 
from .util import Call, Name
 
5
from .. import fixer_base
 
6
from ..fixer_util import Call, Name
7
7
from .. import patcomp
8
8
 
9
9
 
10
10
context = patcomp.compile_pattern("power< 'eval' trailer< '(' any ')' > >")
11
11
 
12
12
 
13
 
class FixInput(basefix.BaseFix):
 
13
class FixInput(fixer_base.BaseFix):
14
14
 
15
15
    PATTERN = """
16
16
              power< 'input' args=trailer< '(' [any] ')' > >