Home | History | Annotate | Download | only in fixes

Lines Matching refs:imports

1 """ Fixer for imports of itertools.(imap|ifilter|izip|ifilterfalse) """
3 # Local imports
11 import_from< 'from' 'itertools' 'import' imports=any >
15 imports = results['imports']
16 if imports.type == syms.import_as_name or not imports.children:
17 children = [imports]
19 children = imports.children
40 children = imports.children[:] or [imports]
51 # If there are no imports left, just get rid of the entire statement
52 if (not (imports.children or getattr(imports, 'value', None)) or
53 imports.parent is None):