Module Import alias alias alias alias alias alias alias alias Import alias Import alias FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad ListLoad Str Assign NameStore Call NameLoad GeneratorExp NameLoad comprehension TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr UnaryOpNot NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call NameLoad body TryExcept body With Call AttributeLoad NameLoad attr NameLoad Str NameLoad NameStore body Return Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass decorator_list Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Num keyword ListLoad Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body TryExcept body Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore Call NameLoad Call AttributeLoad NameLoad attr body If Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad orelse If Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore SubscriptLoad NameLoad Index NameLoad orelse TryExcept body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad handlers ExceptHandler body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults ListLoad body Assign NameStore ListLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body If BoolOpAnd Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad body AugAssignAdd NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad BinOpAdd NameLoad ListLoad NameLoad orelse If BoolOpAnd Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad body Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore SubscriptLoad NameLoad Index NameLoad If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad orelse If CompareNotEq Call NameLoad SubscriptLoad NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str orelse Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Str body Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore NameLoad Assign NameStore ListLoad For NameStore NameLoad body TryExcept body With Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str NameStore body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Dict Str NameLoad Assign NameStore NameLoad Continue ExceptHandler type NameLoad body TryExcept body With Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str Str NameStore body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad attr Str TryExcept body With Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Dict Str NameLoad Assign NameStore NameLoad Continue Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad NameLoad If NameLoad body Expr Call NameLoad Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore BinOpMult Call NameLoad NameLoad Num For TupleStore NameStore NameStore NameStore NameStore NameLoad body For NameStore TupleLoad NameLoad ListLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign NameStore BinOpMult BinOpSub Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad If CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword ListLoad Str If CompareEq NameLoad NameLoad body Assign NameStore Str orelse Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad Call NameLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Call AttributeLoad Call NameLoad NameLoad attr Call NameLoad Call NameLoad NameLoad If CompareEq Call NameLoad NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Num orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd NameStore Call NameLoad NameLoad AugAssignAdd NameStore Num AugAssignAdd NameStore Num If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call NameLoad BinOpDiv Call NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call NameLoad BinOpDiv Call NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad If CompareEq NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad Num orelse If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Str body Assign NameStore NameLoad Assign NameStore ListLoad For NameStore NameLoad body TryExcept body With Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str NameStore body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Dict Str NameLoad Assign NameStore NameLoad Continue If NameLoad body Expr Call NameLoad Num For TupleStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad With Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Print BinOpMod Str NameLoad
N/A N/A sys argparse os pythonwhois json datetime codecs time N/A pkgutil N/A encodings get_codecs N/A N/A N/A N/A N/A Dynamically get list of codecs in python. N/A false_positives N/A set N/A aliases N/A found N/A set N/A name N/A N/A imp name ispkg N/A N/A pkgutil iter_modules N/A encodings __path__ N/A ispkg N/A N/A N/A found difference_update false_positives N/A found N/A read_encoded_file N/A N/A file_path N/A N/A N/A Try reading file using all codecs. Return the first succesfull one. N/A encoding N/A get_codecs N/A N/A N/A N/A N/A N/A codecs open file_path r encoding f N/A N/A N/A N/A f read N/A N/A N/A Exception N/A N/A N/A N/A parser N/A N/A argparse ArgumentParser description Runs or modifies the test suite for python-whois. N/A N/A N/A parser add_argument mode nargs 1 choices N/A run update default run help Whether to run or update the tests. Only update if you know what you're doing! N/A N/A N/A parser add_argument target nargs + help The targets to run/modify tests for. Use 'all' to run the full test suite. N/A args N/A N/A parser parse_args N/A OK [92m N/A FAIL [91m N/A ENDC [0m encoded_json_dumps N/A N/A obj N/A N/A N/A N/A N/A N/A N/A json dumps obj default json_fallback N/A N/A N/A UnicodeDecodeError N/A e N/A N/A N/A N/A json dumps N/A recursive_encode obj latin-1 default json_fallback N/A json_fallback N/A N/A obj N/A N/A N/A N/A isinstance obj N/A datetime datetime N/A N/A N/A N/A obj isoformat N/A N/A obj N/A recursive_encode N/A N/A obj encoding N/A N/A N/A key N/A list N/A N/A obj keys N/A N/A N/A isinstance N/A obj N/A key dict N/A N/A N/A obj N/A key N/A recursive_encode N/A obj N/A key encoding N/A N/A N/A isinstance N/A obj N/A key list N/A N/A N/A obj N/A key N/A N/A N/A x decode encoding N/A x N/A obj N/A key N/A N/A N/A N/A N/A obj N/A key N/A N/A N/A obj N/A key decode encoding N/A N/A N/A N/A N/A obj N/A recursive_compare N/A N/A obj1 obj2 chain N/A N/A N/A N/A errors N/A N/A chain_name N/A N/A  ->  join chain N/A s1 N/A set N/A N/A obj1 keys N/A s2 N/A set N/A N/A obj2 keys N/A item N/A N/A s1 difference s2 N/A N/A N/A N/A errors append N/A (%s) Key present in previous data, but missing in current data: %s N/A chain_name item N/A item N/A N/A s2 difference s1 N/A N/A N/A N/A errors append N/A (%s) New key present in current data, but missing in previous data: %s N/A chain_name item N/A key N/A N/A s1 intersection s2 N/A N/A N/A N/A isinstance N/A obj1 N/A key dict N/A isinstance N/A obj2 N/A key dict N/A N/A errors N/A recursive_compare N/A obj1 N/A key N/A obj2 N/A key N/A chain N/A key N/A N/A N/A N/A isinstance N/A obj1 N/A key list N/A isinstance N/A obj2 N/A key list N/A N/A lst1 N/A N/A json_fallback x N/A x N/A obj1 N/A key N/A lst2 N/A N/A json_fallback x N/A x N/A obj2 N/A key N/A N/A N/A set lst1 N/A set lst2 N/A N/A N/A N/A errors append N/A (%s) List mismatch in key %s.
   [old] %s
   [new] %s N/A chain_name key N/A set lst1 N/A set lst2 N/A N/A N/A N/A json_fallback N/A obj1 N/A key N/A json_fallback N/A obj2 N/A key N/A N/A N/A N/A errors append N/A (%s) Data mismatch in key %s.
   [old] %s
   [new] %s N/A chain_name key N/A json_fallback N/A obj1 N/A key N/A json_fallback N/A obj2 N/A key N/A errors N/A N/A N/A all N/A args target N/A N/A targets N/A N/A os listdir test/data N/A N/A targets N/A args target N/A N/A N/A targets sort N/A N/A N/A N/A args mode N/A 0 run N/A N/A times_default N/A N/A times_normalized N/A N/A errors False N/A suites N/A N/A target targets N/A N/A N/A N/A N/A N/A codecs open N/A N/A N/A os path join test/data target r f N/A N/A data N/A N/A N/A N/A f read split 
--
 N/A N/A N/A IOError N/A e N/A N/A N/A N/A N/A sys stderr write N/A Invalid domain %(domain)s specified. No test case or base data exists.
 N/A domain target N/A errors True N/A N/A N/A UnicodeDecodeError N/A N/A N/A N/A N/A N/A codecs open N/A N/A N/A os path join test/data target r cp1252 f N/A N/A data N/A N/A N/A N/A f read split 
--
 N/A N/A N/A UnicodeDecodeError N/A e N/A N/A data N/A N/A N/A read_encoded_file N/A N/A N/A os path join test/data target split 
--
 N/A N/A N/A N/A N/A codecs open N/A N/A N/A os path join test/target_default target r f N/A N/A default N/A N/A f read N/A N/A N/A codecs open N/A N/A N/A os path join test/target_normalized target r f N/A N/A normalized N/A N/A f read N/A N/A N/A IOError N/A e N/A N/A N/A N/A N/A sys stderr write N/A Missing target data for domain %(domain)s. Run `./test.py update %(domain)s` to correct this, after verifying that pythonwhois can correctly parse this particular domain.
 N/A domain target N/A errors True N/A N/A N/A N/A suites append N/A target data default normalized N/A errors N/A N/A N/A exit 1 N/A total_errors 0 N/A total_failed 0 N/A total_passed 0 N/A done 1 N/A total N/A N/A len suites 2 N/A N/A target data target_default target_normalized suites N/A N/A normalization N/A True N/A N/A N/A start_time N/A N/A time time N/A parsed N/A N/A N/A pythonwhois parse parse_raw_whois data normalized normalization N/A time_taken N/A N/A N/A N/A time time start_time 1000 N/A parsed N/A N/A json loads N/A encoded_json_dumps parsed N/A N/A normalization True N/A N/A target_data N/A N/A json loads target_normalized N/A N/A target_data N/A N/A json loads target_default N/A errors N/A recursive_compare target_data parsed chain N/A root N/A N/A normalization True N/A N/A mode normalized N/A N/A mode default N/A progress_prefix N/A [%s/%s]  N/A N/A N/A N/A str done rjust N/A len N/A str total N/A N/A N/A str total rjust N/A len N/A str total N/A N/A N/A len errors 0 N/A N/A N/A N/A N/A sys stdout write OK N/A N/A N/A N/A sys stdout write N/A progress_prefix N/A %s passed in %s mode.
 N/A target mode N/A N/A N/A N/A sys stderr write ENDC N/A N/A normalization True N/A N/A N/A N/A times_normalized append time_taken N/A N/A N/A N/A times_default append time_taken N/A total_passed 1 N/A N/A N/A N/A N/A sys stderr write FAIL N/A N/A N/A N/A sys stderr write N/A progress_prefix N/A %s TEST CASE FAILED, ERRORS BELOW
 target N/A N/A N/A N/A sys stderr write N/A Mode: %s
 mode N/A N/A N/A N/A sys stderr write =======================================
 N/A error errors N/A N/A N/A N/A N/A sys stderr write N/A error N/A N/A N/A N/A sys stderr write =======================================
 N/A N/A N/A N/A sys stderr write ENDC N/A total_errors N/A len errors N/A total_failed 1 N/A done 1 N/A N/A N/A len times_default 0 N/A N/A average_default N/A int N/A N/A sum times_default N/A float N/A len times_default N/A min_default N/A min times_default N/A max_default N/A max times_default N/A N/A N/A N/A sys stdout write N/A Timing in default mode: %dms avg, %dms min, %dms max
 N/A average_default min_default max_default N/A N/A N/A len times_normalized 0 N/A N/A average_normalized N/A int N/A N/A sum times_normalized N/A float N/A len times_normalized N/A min_normalized N/A min times_normalized N/A max_normalized N/A max times_normalized N/A N/A N/A N/A sys stdout write N/A Timing in normalized mode: %dms avg, %dms min, %dms max
 N/A average_normalized min_normalized max_normalized N/A N/A total_failed 0 N/A N/A N/A N/A N/A sys stdout write OK N/A N/A N/A N/A sys stdout write All tests passed!
 N/A N/A N/A N/A sys stderr write ENDC N/A N/A N/A N/A N/A sys stdout write FAIL N/A N/A N/A N/A sys stdout write N/A %d tests failed, %d errors in total.
 N/A total_failed total_errors N/A N/A N/A N/A sys stderr write ENDC N/A N/A exit 1 N/A N/A N/A N/A N/A args mode N/A 0 update N/A N/A errors False N/A updates N/A N/A target targets N/A N/A N/A N/A N/A N/A codecs open N/A N/A N/A os path join test/data target r f N/A N/A data N/A N/A N/A N/A f read split 
--
 N/A N/A N/A updates append N/A target data N/A N/A N/A IOError N/A e N/A N/A N/A N/A N/A sys stderr write N/A Invalid domain %(domain)s specified. No base data exists.
 N/A domain target N/A errors True N/A N/A errors N/A N/A N/A exit 1 N/A N/A target data updates N/A N/A default N/A N/A N/A pythonwhois parse parse_raw_whois data N/A normalized N/A N/A N/A pythonwhois parse parse_raw_whois data normalized True N/A N/A N/A codecs open N/A N/A N/A os path join test/target_default target w f N/A N/A N/A N/A f write N/A encoded_json_dumps default N/A N/A N/A codecs open N/A N/A N/A os path join test/target_normalized target w f N/A N/A N/A N/A f write N/A encoded_json_dumps normalized N/A N/A Generated target data for %s. target