From: Kenneth Reitz Date: Sat, 22 Oct 2011 22:00:26 +0000 (-0400) Subject: All methods are valid now X-Git-Tag: v0.7.0~14^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dbf70fc40fd0d05133bf93d0d43d1267650ccf78;p=services%2Fpython-requests.git All methods are valid now --- diff --git a/requests/__init__.py b/requests/__init__.py index b443c95..630ce6a 100644 --- a/requests/__init__.py +++ b/requests/__init__.py @@ -30,5 +30,5 @@ from .status_codes import codes from .config import settings from .exceptions import ( RequestException, AuthenticationError, Timeout, URLRequired, - InvalidMethod, TooManyRedirects + TooManyRedirects ) diff --git a/requests/exceptions.py b/requests/exceptions.py index 13305e5..e381e8c 100644 --- a/requests/exceptions.py +++ b/requests/exceptions.py @@ -12,15 +12,12 @@ class RequestException(Exception): class AuthenticationError(RequestException): """The authentication credentials provided were invalid.""" - + class Timeout(RequestException): """The request timed out.""" class URLRequired(RequestException): """A valid URL is required to make a request.""" -class InvalidMethod(RequestException): - """An inappropriate method was attempted.""" - class TooManyRedirects(RequestException): """Too many redirects."""