~pythonregexp2.7/python/issue2636-11

« back to all changes in this revision

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

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-21 17:53:26 UTC
  • mfrom: (39025.1.14 Regexp-2.7)
  • Revision ID: darklord@timehorse.com-20080921175326-92vaej2hc3yuecxb
Merged in changes from the core Regexp branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Author: Collin Winter
3
3
 
4
4
# Local imports
5
 
from . import basefix
6
 
from .util import Name
7
 
 
8
 
 
9
 
class FixFuncattrs(basefix.BaseFix):
 
5
from .. import fixer_base
 
6
from ..fixer_util import Name
 
7
 
 
8
 
 
9
class FixFuncattrs(fixer_base.BaseFix):
10
10
    PATTERN = """
11
11
    power< any+ trailer< '.' attr=('func_closure' | 'func_doc' | 'func_globals'
12
12
                                  | 'func_name' | 'func_defaults' | 'func_code'