diff options
| author | Nate Prewitt <Nate.Prewitt@gmail.com> | 2016-10-27 15:52:31 -0600 |
|---|---|---|
| committer | Nate Prewitt <Nate.Prewitt@gmail.com> | 2016-11-02 09:56:56 -0600 |
| commit | 40402cd0dd044b640b984d25233e1095fae9ec16 (patch) | |
| tree | 19aa7a6af068034f8543cdd089932c01cfffd1cf /requests/compat.py | |
| parent | 9deb603dc34e0b5191da688185fd189f36c7dda5 (diff) | |
| download | python-requests-40402cd0dd044b640b984d25233e1095fae9ec16.tar.gz | |
adding rewind for re-POST bodies
Diffstat (limited to 'requests/compat.py')
| -rw-r--r-- | requests/compat.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/requests/compat.py b/requests/compat.py index eb6530d6..f88e600d 100644 --- a/requests/compat.py +++ b/requests/compat.py @@ -50,6 +50,7 @@ if is_py2: str = unicode basestring = basestring numeric_types = (int, long, float) + integer_types = (int, long) elif is_py3: from urllib.parse import urlparse, urlunparse, urljoin, urlsplit, urlencode, quote, unquote, quote_plus, unquote_plus, urldefrag @@ -64,3 +65,4 @@ elif is_py3: bytes = bytes basestring = (str, bytes) numeric_types = (int, float) + integer_types = (int,) |
