Skip to content
Myr

cleaner patch names

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 14ef462 · Browse files · 2 files+7 added−11 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+7 added−11 removed

  • other:+7 added−11 removed

2 files+7 added−11 removed

modified:requests/models.py+3 added-3 removed
13 unmodified lines
1415from urllib2 import HTTPError16from urlparse import urlparse1718from .monkeys import _Request, _HTTPBasicAuthHandler, _HTTPDigestAuthHandler18from .monkeys import Request as _Request, HTTPBasicAuthHandler, HTTPDigestAuthHandler1920from .packages.poster.encode import multipart_encode21from .packages.poster.streaminghttp import register_openers, get_handlers22
381 unmodified lines
404 :param handler: (optional) basic || digest || proxy_basic || proxy_digest405 """406407 _handlers = {408 'basic': _HTTPBasicAuthHandler,409 'digest': _HTTPDigestAuthHandler,408 'basic': HTTPBasicAuthHandler,409 'digest': HTTPDigestAuthHandler,410 'proxy_basic': urllib2.ProxyBasicAuthHandler,411 'proxy_digest': urllib2.ProxyDigestAuthHandler412 }413
22 unmodified lines
modified:requests/monkeys.py+4 added-8 removed
2 unmodified lines
3"""4requests.monkeys5~~~~~~~~~~~~~~~~67Monkey patches to urllib2 and the like.7Urllib2 Monkey patches.89"""1011# import requests12# import urllib11import urllib214# import socket15# import zlib121318class _Request(urllib2.Request):14class Request(urllib2.Request):15 """Hidden wrapper around the urllib2.Request object. Allows for manual16 setting of HTTP methods.17 """18
7 unmodified lines
2627 return urllib2.Request.get_method(self)282934class _HTTPBasicAuthHandler(urllib2.HTTPBasicAuthHandler):30class HTTPBasicAuthHandler(urllib2.HTTPBasicAuthHandler):31 # from mercurial3233 def __init__(self, *args, **kwargs):34 urllib2.HTTPBasicAuthHandler.__init__(self, *args, **kwargs)
14 unmodified lines
49 self, auth_header, host, req, headers)50515257class _HTTPDigestAuthHandler(urllib2.HTTPDigestAuthHandler):53class HTTPDigestAuthHandler(urllib2.HTTPDigestAuthHandler):5455 def __init__(self, *args, **kwargs):56 urllib2.HTTPDigestAuthHandler.__init__(self, *args, **kwargs)57 self.retried_req = None
24 unmodified lines