Lines Matching full:none
71 _urlopener = None
72 def urlopen(url, data=None, proxies=None):
79 if proxies is not None:
86 if data is None:
90 def urlretrieve(url, filename=None, reporthook=None, data=None):
124 __tempfiles = None
129 def __init__(self, proxies=None, **x509):
130 if proxies is None:
139 self.tempcache = None
178 def open(self, fullurl, data=None):
197 proxy = None
207 if data is None:
214 def open_unknown(self, fullurl, data=None):
219 def open_unknown_proxy(self, proxy, fullurl, data=None):
225 def retrieve(self, url, filename=None, reporthook=None, data=None):
232 if filename is None and (not type or type == 'file'):
257 if self.tempcache is not None:
290 def open_http(self, url, data=None):
293 user_passwd = None
294 proxy_passwd= None
308 user_passwd = None
310 realhost = None
327 proxy_auth = None
333 auth = None
335 if data is not None:
352 'got a bad status line', None)
358 if data is None:
363 def http_error(self, url, fp, errcode, errmsg, headers, data=None):
371 if data is None:
384 def open_https(self, url, data=None):
388 user_passwd = None
389 proxy_passwd = None
402 user_passwd = None
404 realhost = None
417 proxy_auth = None
422 auth = None
426 if data is not None:
444 'got a bad status line', None)
450 if data is None:
516 else: passwd = None
557 if retrlen is not None and retrlen >= 0:
564 def open_data(self, url, data=None):
606 #f.fileno = None # needed for addinfourl
623 def http_error_302(self, url, fp, errcode, errmsg, headers, data=None):
663 def http_error_301(self, url, fp, errcode, errmsg, headers, data=None):
667 def http_error_303(self, url, fp, errcode, errmsg, headers, data=None):
671 def http_error_307(self, url, fp, errcode, errmsg, headers, data=None):
673 if data is None:
678 def http_error_401(self, url, fp, errcode, errmsg, headers, data=None):
695 if data is None:
700 def http_error_407(self, url, fp, errcode, errmsg, headers, data=None):
717 if data is None:
722 def retry_proxy_http_basic_auth(self, url, realm, data=None):
731 if not (user or passwd): return None
734 if data is None:
739 def retry_proxy_https_basic_auth(self, url, realm, data=None):
748 if not (user or passwd): return None
751 if data is None:
756 def retry_http_basic_auth(self, url, realm, data=None):
761 if not (user or passwd): return None
764 if data is None:
769 def retry_https_basic_auth(self, url, realm, data=None):
774 if not (user or passwd): return None
777 if data is None:
804 return None, None
809 _localhost = None
813 if _localhost is None:
817 _thishost = None
821 if _thishost is None:
825 _ftperrors = None
829 if _ftperrors is None:
834 _noheaders = None
838 if _noheaders is None:
886 conn = None
957 self.fileno = lambda: None
968 self.read = None
969 self.readline = None
970 self.readlines = None
971 self.fileno = None
973 self.fp = None
986 self.closehook = None
987 self.hookargs = None
1003 def __init__(self, fp, headers, url, code=None):
1019 # Utilities to parse URLs (most of these return None for missing parts):
1063 _typeprog = None
1067 if _typeprog is None:
1075 return None, url
1077 _hostprog = None
1081 if _hostprog is None:
1092 return None, url
1094 _userprog = None
1098 if _userprog is None:
1104 return None, host
1106 _passwdprog = None
1110 if _passwdprog is None:
1116 return user, None
1119 _portprog = None
1123 if _portprog is None:
1129 return host, None
1131 _nportprog = None
1136 Return None if ':' but not a valid number."""
1138 if _nportprog is None:
1149 nport = None
1153 _queryprog = None
1157 if _queryprog is None:
1163 return url, None
1165 _tagprog = None
1169 if _tagprog is None:
1175 return url, None
1183 _valueprog = None
1187 if _valueprog is None:
1193 return attr, None
1268 if s is None:
1269 raise TypeError('None object cannot be quoted')
1422 hostIP = None
1429 if m is not None:
1430 if hostIP is None:
1439 if mask is None: