parameters: (self, url, fp, errcode, errmsg, headers, data=None)
docstring: Error 407 -- proxy authentication required.
          This function supports Basic authentication only.
docstring_summary: Error 407 -- proxy authentication required.
          This function supports Basic authentication only.
docstring_tokens: Error 407 -- proxy authentication required . This function supports Basic authentication only .
function: def http_error_407(self, url, fp, errcode, errmsg, headers, data=None):
          """Error 407 -- proxy authentication required.
          This function supports Basic authentication only."""
          if not 'proxy-authenticate' in headers:
              URLopener.http_error_default(self, url, fp,
                                           errcode, errmsg, headers)
          stuff = headers['proxy-authenticate']
          import re
          match = re.match('[ \t]*([^ \t]+)[ \t]+realm="([^"]*)"', stuff)
          if not match:
              URLopener.http_error_default(self, url, fp,
                                           errcode, errmsg, headers)
          scheme, realm = match.groups()
          if scheme.lower() != 'basic':
              URLopener.http_error_default(self, url, fp,
                                           errcode, errmsg, headers)
          name = 'retry_proxy_' + self.type + '_basic_auth'
          if data is None:
              return getattr(self,name)(url, realm)
          else:
              return getattr(self,name)(url, realm, data)
function_tokens: def http_error_407 ( self , url , fp , errcode , errmsg , headers , data = None ) : if not 'proxy-authenticate' in headers : URLopener . http_error_default ( self , url , fp , errcode , errmsg , headers ) stuff = headers [ 'proxy-authenticate' ] import re match = re . match ( '[ \t]*([^ \t]+)[ \t]+realm="([^"]*)"' , stuff ) if not match : URLopener . http_error_default ( self , url , fp , errcode , errmsg , headers ) scheme , realm = match . groups ( ) if scheme . lower ( ) != 'basic' : URLopener . http_error_default ( self , url , fp , errcode , errmsg , headers ) name = 'retry_proxy_' + self . type + '_basic_auth' if data is None : return getattr ( self , name ) ( url , realm ) else : return getattr ( self , name ) ( url , realm , data )