Removed unused imports.

This commit is contained in:
Serhiy Storchaka 2016-04-25 00:12:32 +03:00
parent a6f26c1d34
commit ccd047ea4b
26 changed files with 11 additions and 31 deletions

View file

@ -1,8 +1,6 @@
"""Utility functions, node construction macros, etc."""
# Author: Collin Winter
from itertools import islice
# Local imports
from .pgen2 import token
from .pytree import Leaf, Node

View file

@ -30,9 +30,8 @@ as an argument to a function that introspects the argument).
# Local imports
from .. import pytree
from .. import patcomp
from ..pgen2 import token
from .. import fixer_base
from ..fixer_util import Name, Call, LParen, RParen, ArgList, Dot
from ..fixer_util import Name, Call, Dot
from .. import fixer_util

View file

@ -10,7 +10,6 @@ exec code in ns1, ns2 -> exec(code, ns1, ns2)
"""
# Local imports
from .. import pytree
from .. import fixer_base
from ..fixer_util import Comma, Name, Call

View file

@ -14,7 +14,6 @@ Python 2.6 figure it out.
"""
# Local imports
from ..pgen2 import token
from .. import fixer_base
from ..fixer_util import Name, Call, ListComp, in_special_context

View file

@ -31,7 +31,6 @@ CAVEATS:
# Local imports
from .. import pytree
from ..pgen2 import token
from .. import fixer_base
from ..fixer_util import Name, parenthesize

View file

@ -20,7 +20,7 @@
# Local imports
from .. import fixer_base
from ..pygram import token
from ..fixer_util import Name, syms, Node, Leaf
from ..fixer_util import syms, Node, Leaf
def has_metaclass(parent):

View file

@ -3,7 +3,7 @@
# Local imports
from .. import fixer_base
from ..fixer_util import Name, syms
from ..fixer_util import Name
class FixNonzero(fixer_base.BaseFix):
BM_compatible = True

View file

@ -18,7 +18,7 @@ from .. import patcomp
from .. import pytree
from ..pgen2 import token
from .. import fixer_base
from ..fixer_util import Name, Call, Comma, String, is_tuple
from ..fixer_util import Name, Call, Comma, String
parend_expr = patcomp.compile_pattern(

View file

@ -20,7 +20,6 @@ There should be another fixer that handles at least the following constants:
"""
# Local imports
from ..pgen2 import token
from .. import fixer_base
from ..fixer_util import Name

View file

@ -6,7 +6,6 @@
# Local imports
from lib2to3.fixes.fix_imports import alternates, FixImports
from lib2to3 import fixer_base
from lib2to3.fixer_util import (Name, Comma, FromImport, Newline,
find_indentation, Node, syms)

View file

@ -26,7 +26,6 @@ from itertools import chain
from .pgen2 import driver, tokenize, token
from .fixer_util import find_root
from . import pytree, pygram
from . import btm_utils as bu
from . import btm_matcher as bm