~pythonregexp2.7/python/issue2636-01+09-01-01

« back to all changes in this revision

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

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-22 00:02:12 UTC
  • mfrom: (39022.1.34 Regexp-2.7)
  • Revision ID: darklord@timehorse.com-20080922000212-7r0q4f4ugiq57jph
Merged in changes from the Atomic Grouping / Possessive Qualifiers branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
from .. import patcomp
18
18
from .. import pytree
19
19
from ..pgen2 import token
20
 
from .import basefix
21
 
from .util import Name, Call, Comma, String, is_tuple
 
20
from .. import fixer_base
 
21
from ..fixer_util import Name, Call, Comma, String, is_tuple
22
22
 
23
23
 
24
24
parend_expr = patcomp.compile_pattern(
26
26
              )
27
27
 
28
28
 
29
 
class FixPrint(basefix.ConditionalFix):
 
29
class FixPrint(fixer_base.ConditionalFix):
30
30
 
31
31
    PATTERN = """
32
 
              simple_stmt< bare='print' any > | print_stmt
 
32
              simple_stmt< any* bare='print' any* > | print_stmt
33
33
              """
34
34
 
35
35
    skip_on = '__future__.print_function'