Module Import alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults vararg kwarg body For NameStore Call NameLoad Num body TryExcept body Return Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Continue ExceptHandler body Raise Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body Expr Str decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Import alias Assign NameStore Call NameLoad Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body If Num body Import alias Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str TupleLoad Str NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Str TryFinally body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad BinOpAdd Str Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TupleLoad Str NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr keyword NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Import alias Import alias Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr If NameLoad body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore NameLoad orelse Assign NameStore NameStore NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad NameLoad If NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body If Call NameLoad SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr BinOpMod Str NameLoad Continue orelse Raise orelse TryExcept body With Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad BinOpMod Str Call NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad keyword NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Num TryFinally body Assign NameStore Call NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Num TryFinally body Assign NameStore Call NameLoad NameLoad keyword NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr Num decorator_list Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num TryFinally body Assign NameStore Call NameLoad AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num TryFinally body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Num decorator_list decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A unittest test test_support test.test_urllib2 sanepathname2url N/A socket N/A urllib2 N/A os N/A sys N/A TIMEOUT 60 _retry_thrice N/A N/A func exc N/A args kwargs N/A N/A i N/A range 3 N/A N/A N/A N/A N/A func args kwargs N/A N/A N/A exc N/A last_exc N/A N/A N/A N/A N/A N/A last_exc N/A _wrap_with_retry_thrice N/A N/A func exc N/A N/A wrapped N/A N/A N/A args kwargs N/A N/A N/A _retry_thrice func exc args kwargs N/A N/A wrapped N/A N/A _urlopen_with_retry N/A _wrap_with_retry_thrice N/A urllib2 urlopen N/A urllib2 URLError AuthTests N/A N/A unittest TestCase N/A N/A Tests urllib2 authentication features. N/A CloseSocketTest N/A N/A unittest TestCase N/A test_close N/A N/A self N/A N/A N/A httplib N/A response N/A _urlopen_with_retry http://www.example.com/ N/A abused_fileobject N/A response fp N/A N/A N/A self assertIs N/A abused_fileobject __class__ N/A socket _fileobject N/A httpresponse N/A abused_fileobject _sock N/A N/A N/A self assertIs N/A httpresponse __class__ N/A httplib HTTPResponse N/A fileobject N/A httpresponse fp N/A N/A N/A self assertIs N/A fileobject __class__ N/A socket _fileobject N/A N/A N/A self assertTrue N/A N/A fileobject closed N/A N/A N/A response close N/A N/A N/A self assertTrue N/A fileobject closed N/A N/A OtherNetworkTests N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A 0 N/A N/A logging N/A logger N/A N/A logging getLogger test_urllib2net N/A N/A N/A logger addHandler N/A N/A logging StreamHandler N/A test_ftp N/A N/A self N/A N/A N/A urls N/A ftp://ftp.debian.org/debian/README N/A ftp://ftp.debian.org/debian/non-existent-file None N/A urllib2 URLError N/A N/A N/A self _test_urls urls N/A N/A self _extra_handlers N/A test_file N/A N/A self N/A N/A N/A TESTFN N/A test_support TESTFN N/A f N/A open TESTFN w N/A N/A N/A N/A N/A f write hi there
 N/A N/A N/A f close N/A urls N/A N/A file: N/A sanepathname2url N/A N/A N/A os path abspath TESTFN N/A file:///nonsensename/etc/passwd None N/A urllib2 URLError N/A N/A N/A self _test_urls urls N/A N/A self _extra_handlers retry True N/A N/A N/A N/A os remove TESTFN N/A N/A N/A self assertRaises ValueError N/A urllib2 urlopen ./relative_path/to/file N/A test_urlwithfrag N/A N/A self N/A N/A N/A urlwith_frag http://www.pythontest.net/index.html#frag N/A N/A N/A test_support transient_internet urlwith_frag N/A N/A req N/A N/A urllib2 Request urlwith_frag N/A res N/A N/A urllib2 urlopen req N/A N/A N/A self assertEqual N/A N/A res geturl http://www.pythontest.net/index.html#frag N/A test_fileno N/A N/A self N/A N/A N/A req N/A N/A urllib2 Request http://www.example.com N/A opener N/A N/A urllib2 build_opener N/A res N/A N/A opener open req N/A N/A N/A N/A N/A N/A N/A res fileno N/A N/A N/A AttributeError N/A N/A N/A N/A self fail HTTPResponse object should return a valid fileno N/A N/A N/A N/A res close N/A test_custom_headers N/A N/A self N/A N/A N/A url http://www.example.com N/A N/A N/A test_support transient_internet url N/A N/A opener N/A N/A urllib2 build_opener N/A request N/A N/A urllib2 Request url N/A N/A N/A self assertFalse N/A N/A request header_items N/A N/A N/A opener open request N/A N/A N/A self assertTrue N/A N/A request header_items N/A N/A N/A self assertTrue N/A N/A request has_header User-agent N/A N/A N/A request add_header User-Agent Test-Agent N/A N/A N/A opener open request N/A N/A N/A self assertEqual N/A N/A request get_header User-agent Test-Agent N/A test_sites_no_connection_close N/A N/A self N/A N/A N/A URL http://www.imdb.com N/A N/A N/A test_support transient_internet URL N/A N/A req N/A N/A urllib2 urlopen URL N/A res N/A N/A req read N/A N/A N/A self assertTrue res N/A _test_urls N/A N/A self urls handlers retry N/A True N/A N/A time N/A logging N/A debug N/A N/A N/A logging getLogger test_urllib2 debug N/A urlopen N/A N/A N/A urllib2 build_opener handlers open N/A retry N/A N/A urlopen N/A _wrap_with_retry_thrice urlopen N/A urllib2 URLError N/A url urls N/A N/A N/A isinstance url tuple N/A N/A N/A url req expected_err url N/A N/A req expected_err None N/A N/A N/A test_support transient_internet url N/A N/A N/A debug url N/A N/A N/A f N/A urlopen url req TIMEOUT N/A N/A N/A EnvironmentError N/A err N/A N/A N/A debug err N/A expected_err N/A N/A msg N/A Didn't get expected error(s) %s for %s %s, got %s: %s N/A expected_err url req N/A type err err N/A N/A N/A self assertIsInstance err expected_err msg N/A N/A N/A urllib2 URLError N/A err N/A N/A N/A isinstance N/A err N/A 0 N/A socket timeout N/A N/A N/A sys stderr N/A <timeout: %s> url N/A N/A N/A N/A N/A N/A N/A N/A N/A test_support transient_internet url N/A N/A buf N/A N/A f read N/A N/A debug N/A read %d bytes N/A len buf N/A N/A N/A N/A socket timeout N/A N/A N/A sys stderr N/A <timeout: %s> url N/A N/A N/A f close N/A N/A debug ******** next url coming up... N/A N/A N/A time sleep 0.1 N/A _extra_handlers N/A N/A self N/A N/A N/A handlers N/A N/A cfh N/A N/A urllib2 CacheFTPHandler N/A N/A N/A self addCleanup N/A cfh clear_cache N/A N/A N/A cfh setTimeout 1 N/A N/A N/A handlers append cfh N/A handlers N/A N/A TimeoutTest N/A N/A unittest TestCase N/A test_http_basic N/A N/A self N/A N/A N/A N/A N/A self assertIsNone N/A N/A socket getdefaulttimeout N/A url http://www.example.com N/A N/A N/A test_support transient_internet url timeout None N/A N/A u N/A _urlopen_with_retry url N/A N/A N/A self assertIsNone N/A N/A N/A N/A N/A N/A u fp _sock fp _sock gettimeout N/A test_http_default_timeout N/A N/A self N/A N/A N/A N/A N/A self assertIsNone N/A N/A socket getdefaulttimeout N/A url http://www.example.com N/A N/A N/A test_support transient_internet url N/A N/A N/A N/A socket setdefaulttimeout 60 N/A N/A N/A u N/A _urlopen_with_retry url N/A N/A N/A N/A socket setdefaulttimeout None N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A N/A u fp _sock fp _sock gettimeout 60 N/A test_http_no_timeout N/A N/A self N/A N/A N/A N/A N/A self assertIsNone N/A N/A socket getdefaulttimeout N/A url http://www.example.com N/A N/A N/A test_support transient_internet url N/A N/A N/A N/A socket setdefaulttimeout 60 N/A N/A N/A u N/A _urlopen_with_retry url timeout None N/A N/A N/A N/A socket setdefaulttimeout None N/A N/A N/A self assertIsNone N/A N/A N/A N/A N/A N/A u fp _sock fp _sock gettimeout N/A test_http_timeout N/A N/A self N/A N/A N/A url http://www.example.com N/A N/A N/A test_support transient_internet url N/A N/A u N/A _urlopen_with_retry url timeout 120 N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A N/A u fp _sock fp _sock gettimeout 120 N/A N/A FTP_HOST ftp://ftp.debian.org/debian/ test_ftp_basic N/A N/A self N/A N/A N/A N/A N/A self assertIsNone N/A N/A socket getdefaulttimeout N/A N/A N/A test_support transient_internet N/A self FTP_HOST timeout None N/A N/A u N/A _urlopen_with_retry N/A self FTP_HOST N/A N/A N/A self assertIsNone N/A N/A N/A N/A N/A u fp fp _sock gettimeout N/A test_ftp_default_timeout N/A N/A self N/A N/A N/A N/A N/A self assertIsNone N/A N/A socket getdefaulttimeout N/A N/A N/A test_support transient_internet N/A self FTP_HOST N/A N/A N/A N/A socket setdefaulttimeout 60 N/A N/A N/A u N/A _urlopen_with_retry N/A self FTP_HOST N/A N/A N/A N/A socket setdefaulttimeout None N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A u fp fp _sock gettimeout 60 N/A test_ftp_no_timeout N/A N/A self N/A N/A N/A N/A N/A self assertIsNone N/A N/A socket getdefaulttimeout N/A N/A N/A test_support transient_internet N/A self FTP_HOST N/A N/A N/A N/A socket setdefaulttimeout 60 N/A N/A N/A u N/A _urlopen_with_retry N/A self FTP_HOST timeout None N/A N/A N/A N/A socket setdefaulttimeout None N/A N/A N/A self assertIsNone N/A N/A N/A N/A N/A u fp fp _sock gettimeout N/A test_ftp_timeout N/A N/A self N/A N/A N/A N/A N/A test_support transient_internet N/A self FTP_HOST N/A N/A u N/A _urlopen_with_retry N/A self FTP_HOST timeout 60 N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A u fp fp _sock gettimeout 60 N/A N/A test_main N/A N/A N/A N/A N/A N/A N/A test_support requires network N/A N/A N/A test_support run_unittest AuthTests OtherNetworkTests CloseSocketTest TimeoutTest N/A N/A N/A __name__ __main__ N/A N/A N/A test_main