Skip to content
Myr

remove invalidmethod

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 0cb7376 · Browse files · 2 files+2 added−6 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+2 added−6 removed

  • other:+2 added−6 removed

2 files+2 added−6 removed

modified:requests/exceptions.py+1 added-4 removed
10 unmodified lines
11 request."""1213class AuthenticationError(RequestException):14 """The authentication credentials provided were invalid."""15 1516class Timeout(RequestException):17 """The request timed out."""1819class URLRequired(RequestException):20 """A valid URL is required to make a request."""2122class InvalidMethod(RequestException):23 """An inappropriate method was attempted."""2422class TooManyRedirects(RequestException):23 """Too many redirects."""
modified:requests/models.py+1 added-2 removed
7 unmodified lines
89import urllib10import urllib211import socket12import codecs12import zlib131415from urllib2 import HTTPError
6 unmodified lines
22from .packages.poster.encode import multipart_encode23from .packages.poster.streaminghttp import register_openers, get_handlers24from .utils import dict_from_cookiejar, get_unicode_from_response, stream_decode_response_unicode, decode_gzip, stream_decode_gzip25from .status_codes import codes27from .exceptions import RequestException, AuthenticationError, Timeout, URLRequired, InvalidMethod, TooManyRedirects26from .exceptions import RequestException, AuthenticationError, Timeout, URLRequired, TooManyRedirects272829REDIRECT_STATI = (codes.moved, codes.found, codes.other, codes.temporary_moved)30
649 unmodified lines