Module ImportFrom alias alias alias alias alias alias alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Str Str Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg body Return Call AttributeLoad BinOpMult Str NameLoad attr ListComp Call NameLoad Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Return Call NameLoad Call NameLoad NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad NameLoad decorator_list Assign NameStore TupleLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Num NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Num NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list decorator_list
N/A __future__ absolute_import division generators nested_scopes print_function unicode_literals with_statement N/A ast N/A textwrap pants_test.contrib.python.checks.tasks.checkstyle.plugin_test_base CheckstylePluginTestBase pants.contrib.python.checks.tasks.checkstyle.common Nit pants.contrib.python.checks.tasks.checkstyle.import_order ImportOrder ImportType N/A IMPORT_CHUNKS N/A N/A ImportType STDLIB N/A ImportType TWITTER N/A ImportType GEN N/A ImportType PACKAGE N/A ImportType THIRD_PARTY 
  import ast
  from collections import namedtuple
  import io
   
  from twitter.common import app
  from twitter.common.dirutil import (
      safe_mkdtemp,
      safe_open,
      safe_rmtree)
   
  from gen.twitter.aurora.ttypes import TwitterTaskInfo
   
  from .import_order import (
      ImportOrder,
      ImportType
  )
   
  from kazoo.client import KazooClient
  import zookeeper
   strip_newline N/A N/A stmt N/A N/A N/A N/A N/A textwrap dedent N/A N/A join N/A filter None N/A N/A stmt splitlines N/A stitch_chunks N/A N/A newlines N/A chunks N/A N/A N/A N/A N/A newlines join N/A N/A strip_newline N/A N/A IMPORT_CHUNKS get c N/A c chunks N/A ImportOrderTest N/A CheckstylePluginTestBase N/A N/A plugin_type ImportOrder get_import_chunk_types N/A N/A self import_type N/A N/A N/A chunks N/A list N/A N/A N/A N/A self get_plugin N/A IMPORT_CHUNKS N/A import_type iter_import_chunks N/A N/A N/A self assertEqual 1 N/A len chunks N/A N/A tuple N/A map type N/A chunks N/A 0 N/A test_classify_import_chunks N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A ast Import N/A ast ImportFrom N/A ast Import N/A N/A self get_import_chunk_types N/A ImportType STDLIB N/A N/A N/A self assertEqual N/A N/A ast ImportFrom N/A ast ImportFrom N/A N/A self get_import_chunk_types N/A ImportType TWITTER N/A N/A N/A self assertEqual N/A N/A ast ImportFrom N/A N/A self get_import_chunk_types N/A ImportType GEN N/A N/A N/A self assertEqual N/A N/A ast ImportFrom N/A N/A self get_import_chunk_types N/A ImportType PACKAGE N/A N/A N/A self assertEqual N/A N/A ast ImportFrom N/A ast Import N/A N/A self get_import_chunk_types N/A ImportType THIRD_PARTY N/A test_classify_import N/A N/A self N/A N/A N/A N/A import_type chunk N/A N/A IMPORT_CHUNKS items N/A N/A io N/A N/A self get_plugin chunk N/A import_chunks N/A list N/A N/A io iter_import_chunks N/A N/A N/A self assertEqual 1 N/A len import_chunks N/A N/A module_types chunk_errors N/A N/A io classify_imports N/A import_chunks N/A 0 N/A N/A N/A self assertEqual 1 N/A len module_types N/A N/A N/A self assertEqual import_type N/A N/A module_types pop N/A N/A N/A self assertEqual N/A chunk_errors N/A N/A PAIRS N/A N/A N/A ImportType STDLIB N/A ImportType TWITTER N/A N/A ImportType TWITTER N/A ImportType GEN N/A N/A ImportType PACKAGE N/A ImportType THIRD_PARTY test_pairwise_classify N/A N/A self N/A N/A N/A N/A first second N/A self PAIRS N/A N/A io N/A N/A self get_plugin N/A stitch_chunks 1 first second N/A import_chunks N/A list N/A N/A io iter_import_chunks N/A N/A N/A self assertEqual 2 N/A len import_chunks N/A N/A module_types chunk_errors N/A N/A io classify_imports N/A import_chunks N/A 0 N/A N/A N/A self assertEqual 1 N/A len module_types N/A N/A N/A self assertEqual 0 N/A len chunk_errors N/A N/A N/A self assertEqual first N/A N/A module_types pop N/A N/A module_types chunk_errors N/A N/A io classify_imports N/A import_chunks N/A 1 N/A N/A N/A self assertEqual 1 N/A len module_types N/A N/A N/A self assertEqual 0 N/A len chunk_errors N/A N/A N/A self assertEqual second N/A N/A module_types pop N/A N/A second first N/A self PAIRS N/A N/A io N/A N/A self get_plugin N/A stitch_chunks 1 first second N/A import_chunks N/A list N/A N/A io iter_import_chunks N/A N/A N/A self assertEqual 2 N/A len import_chunks N/A nits N/A list N/A N/A io nits N/A N/A N/A self assertEqual 1 N/A len nits N/A N/A N/A self assertEqual T406 N/A N/A nits N/A 0 code N/A N/A N/A self assertEqual N/A Nit ERROR N/A N/A nits N/A 0 severity N/A test_multiple_imports_error N/A N/A self N/A N/A N/A io N/A N/A self get_plugin N/A stitch_chunks 0 N/A ImportType STDLIB N/A ImportType TWITTER N/A import_chunks N/A list N/A N/A io iter_import_chunks N/A N/A N/A self assertEqual 1 N/A len import_chunks N/A N/A module_types chunk_errors N/A N/A io classify_imports N/A import_chunks N/A 0 N/A N/A N/A self assertEqual 1 N/A len chunk_errors N/A N/A N/A self assertEqual T405 N/A N/A chunk_errors N/A 0 code N/A N/A N/A self assertEqual N/A Nit ERROR N/A N/A chunk_errors N/A 0 severity N/A N/A N/A self assertItemsEqual N/A N/A ImportType STDLIB N/A ImportType TWITTER module_types N/A io N/A N/A self get_plugin 
      import io, pkg_resources
     N/A import_chunks N/A list N/A N/A io iter_import_chunks N/A N/A N/A self assertEqual 1 N/A len import_chunks N/A N/A module_types chunk_errors N/A N/A io classify_imports N/A import_chunks N/A 0 N/A N/A N/A self assertEqual 3 N/A len chunk_errors N/A N/A N/A self assertItemsEqual N/A T403 T405 T402 N/A N/A chunk_error code N/A chunk_error chunk_errors N/A N/A N/A self assertItemsEqual N/A N/A ImportType STDLIB N/A ImportType THIRD_PARTY module_types N/A test_import_lexical_order N/A N/A self N/A N/A N/A imp 
      from twitter.common.dirutil import safe_rmtree, safe_mkdtemp
     N/A N/A N/A self assertNit imp T401 N/A test_import_wildcard N/A N/A self N/A N/A N/A imp 
      from twitter.common.dirutil import *
     N/A N/A N/A self assertNit imp T400 N/A N/A