Skip to content
Myr

Made it so people can add their own auth handlers and not just the 4 provided by Python

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

authored by digitalxero · committed by digitalxero · parent edfdef2 · Browse files · 1 file+4 added−1 removed
This commit

State

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

Diff stats

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:requests/core.py+4 added-1 removed
325 unmodified lines
326 self.username = username327 self.password = password328 self.realm = realm329330 if isinstance(handler, basestring):330 self.handler = self._handlers.get(handler.lower(), urllib2.HTTPBasicAuthHandler)331 self.handler = self._handlers.get(handler.lower(), urllib2.HTTPBasicAuthHandler)332 else:333 self.handler = handler334335336def request(method, url, **kwargs):337 """Sends a `method` request. Returns :class:`Response` object.
97 unmodified lines