/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/fixes/ |
H A D | fix_itertools_imports.py | 5 from lib2to3.fixer_util import BlankLine, syms, token namespace 16 if imports.type == syms.import_as_name or not imports.children: 28 assert child.type == syms.import_as_name
|
H A D | fix_nonzero.py | 6 from ..fixer_util import Name, syms namespace
|
H A D | fix_set_literal.py | 8 from lib2to3.fixer_util import token, syms namespace 31 fake = pytree.Node(syms.listmaker, [single.clone()]) 43 maker = pytree.Node(syms.dictsetmaker, literal)
|
H A D | fix_except.py | 28 from ..fixer_util import Assign, Attr, Name, is_tuple, is_list, syms namespace 32 if n.type == syms.except_clause: 48 syms = self.syms
|
H A D | fix_idioms.py | 32 from ..fixer_util import Call, Comma, Name, Node, BlankLine, syms namespace 108 test = Node(syms.not_test, [Name(u"not"), test])
|
H A D | fix_import.py | 16 from ..fixer_util import FromImport, syms, token namespace 28 elif node.type == syms.dotted_name: 30 elif node.type == syms.dotted_as_name: 32 elif node.type == syms.dotted_as_names: 56 if node.type == syms.import_from:
|
H A D | fix_map.py | 26 from ..pygram import python_symbols as syms namespace 63 if node.parent.type == syms.simple_stmt: 78 if args.type == syms.arglist and \
|
H A D | fix_metaclass.py | 23 from ..fixer_util import Name, syms, Node, Leaf namespace 33 if node.type == syms.suite: 35 elif node.type == syms.simple_stmt and node.children: 37 if expr_node.type == syms.expr_stmt and expr_node.children: 50 if node.type == syms.suite: 62 suite = Node(syms.suite, []) 83 new_expr = Node(syms.expr_stmt, []) 84 new_stmt = Node(syms.simple_stmt, [new_expr]) 103 if node.type == syms.suite: 110 if simple_node.type == syms [all...] |
H A D | fix_next.py | 10 from ..pygram import python_symbols as syms namespace 94 if node.type == syms.expr_stmt: 96 if node.type == syms.simple_stmt or node.parent is None:
|
H A D | fix_sys_exc.py | 12 from ..fixer_util import Attr, Call, Name, Number, Subscript, Node, syms namespace 30 return Node(syms.power, attr, prefix=node.prefix)
|
H A D | fix_exitfunc.py | 8 from lib2to3.fixer_util import Name, Attr, Call, Comma, Newline, syms namespace 46 register = pytree.Node(syms.power, 60 if names.type == syms.dotted_as_names: 67 new_import = pytree.Node(syms.import_name, 70 new = pytree.Node(syms.simple_stmt, [new_import])
|
H A D | fix_tuple_params.py | 25 from ..fixer_util import Assign, Name, Newline, Number, Subscript, syms namespace 75 new_lines.append(pytree.Node(syms.simple_stmt, 78 if args.type == syms.tfpdef: 80 elif args.type == syms.typedargslist: 82 if arg.type == syms.tfpdef: 131 new = pytree.Node(syms.power, 140 if node.type in (syms.vfplist, token.NAME): 142 elif node.type == syms.vfpdef: 145 while node.type == syms.vfpdef: 151 if node.type == syms [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/fixes/ |
H A D | fix_itertools_imports.py | 5 from lib2to3.fixer_util import BlankLine, syms, token namespace 16 if imports.type == syms.import_as_name or not imports.children: 28 assert child.type == syms.import_as_name
|
H A D | fix_nonzero.py | 6 from ..fixer_util import Name, syms namespace
|
H A D | fix_set_literal.py | 8 from lib2to3.fixer_util import token, syms namespace 31 fake = pytree.Node(syms.listmaker, [single.clone()]) 43 maker = pytree.Node(syms.dictsetmaker, literal)
|
H A D | fix_except.py | 28 from ..fixer_util import Assign, Attr, Name, is_tuple, is_list, syms namespace 32 if n.type == syms.except_clause: 48 syms = self.syms
|
H A D | fix_idioms.py | 32 from ..fixer_util import Call, Comma, Name, Node, BlankLine, syms namespace 108 test = Node(syms.not_test, [Name(u"not"), test])
|
H A D | fix_import.py | 16 from ..fixer_util import FromImport, syms, token namespace 28 elif node.type == syms.dotted_name: 30 elif node.type == syms.dotted_as_name: 32 elif node.type == syms.dotted_as_names: 56 if node.type == syms.import_from:
|
H A D | fix_map.py | 26 from ..pygram import python_symbols as syms namespace 63 if node.parent.type == syms.simple_stmt: 78 if args.type == syms.arglist and \
|
H A D | fix_metaclass.py | 23 from ..fixer_util import Name, syms, Node, Leaf namespace 33 if node.type == syms.suite: 35 elif node.type == syms.simple_stmt and node.children: 37 if expr_node.type == syms.expr_stmt and expr_node.children: 50 if node.type == syms.suite: 62 suite = Node(syms.suite, []) 83 new_expr = Node(syms.expr_stmt, []) 84 new_stmt = Node(syms.simple_stmt, [new_expr]) 103 if node.type == syms.suite: 110 if simple_node.type == syms [all...] |
H A D | fix_next.py | 10 from ..pygram import python_symbols as syms namespace 94 if node.type == syms.expr_stmt: 96 if node.type == syms.simple_stmt or node.parent is None:
|
H A D | fix_sys_exc.py | 12 from ..fixer_util import Attr, Call, Name, Number, Subscript, Node, syms namespace 30 return Node(syms.power, attr, prefix=node.prefix)
|
H A D | fix_exitfunc.py | 8 from lib2to3.fixer_util import Name, Attr, Call, Comma, Newline, syms namespace 46 register = pytree.Node(syms.power, 60 if names.type == syms.dotted_as_names: 67 new_import = pytree.Node(syms.import_name, 70 new = pytree.Node(syms.simple_stmt, [new_import])
|
H A D | fix_tuple_params.py | 25 from ..fixer_util import Assign, Name, Newline, Number, Subscript, syms namespace 75 new_lines.append(pytree.Node(syms.simple_stmt, 78 if args.type == syms.tfpdef: 80 elif args.type == syms.typedargslist: 82 if arg.type == syms.tfpdef: 131 new = pytree.Node(syms.power, 140 if node.type in (syms.vfplist, token.NAME): 142 elif node.type == syms.vfpdef: 145 while node.type == syms.vfpdef: 151 if node.type == syms [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/ |
H A D | btm_utils.py | 7 syms = pattern_symbols variable 114 if node.type == syms.Matcher: 118 if node.type == syms.Alternatives : 133 elif node.type == syms.Alternative: 148 elif node.type == syms.Unit: 170 if child.type == syms.Details: 173 elif child.type == syms.Repeater: 176 elif child.type == syms.Alternatives: 210 elif name_leaf.type == syms.Alternatives:
|