diff options
author | Daniele Tricoli <eriol@mornie.org> | 2014-10-23 01:05:41 +0000 |
---|---|---|
committer | Daniele Tricoli <eriol@mornie.org> | 2014-10-23 01:05:41 +0000 |
commit | 838af745aa1e6a83611d7b84c7a8dd2c9338450a (patch) | |
tree | 45b1191b457204d4aa34daf5ddefcd2687985a6c /debian/patches | |
parent | 61d17a1ac5b4f66a634a5bdc203ce0efe2f36d14 (diff) | |
download | python-requests-838af745aa1e6a83611d7b84c7a8dd2c9338450a.tar python-requests-838af745aa1e6a83611d7b84c7a8dd2c9338450a.tar.gz |
Export IncompleteRead from requests.compat since it's imported by python-pip
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/03_export-IncompleteRead.patch | 18 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/03_export-IncompleteRead.patch b/debian/patches/03_export-IncompleteRead.patch new file mode 100644 index 0000000..7220a11 --- /dev/null +++ b/debian/patches/03_export-IncompleteRead.patch @@ -0,0 +1,18 @@ +--- a/requests/compat.py ++++ b/requests/compat.py +@@ -92,6 +92,7 @@ + from Cookie import Morsel + from StringIO import StringIO + from urllib3.packages.ordered_dict import OrderedDict ++ from httplib import IncompleteRead + + builtin_str = str + bytes = str +@@ -107,6 +108,7 @@ + from http.cookies import Morsel + from io import StringIO + from collections import OrderedDict ++ from http.client import IncompleteRead + + builtin_str = str + str = str diff --git a/debian/patches/series b/debian/patches/series index 632785a..0a8f016 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ 01_use-system-ca-certificates.patch 02_use-system-chardet-and-urllib3.patch +03_export-IncompleteRead.patch |