summaryrefslogtreecommitdiff
path: root/swiftclient/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'swiftclient/client.py')
-rw-r--r--swiftclient/client.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/swiftclient/client.py b/swiftclient/client.py
index a9130ab..168bfed 100644
--- a/swiftclient/client.py
+++ b/swiftclient/client.py
@@ -23,7 +23,7 @@ import warnings
from requests.exceptions import RequestException, SSLError
import http.client as http_client
-from urllib.parse import quote as _quote, unquote
+from urllib.parse import quote, unquote
from urllib.parse import urljoin, urlparse, urlunparse
from time import sleep, time
@@ -181,14 +181,6 @@ def parse_header_string(data):
return unquoted
-def quote(value, safe='/'):
- """
- Patched version of urllib.quote that encodes utf8 strings before quoting.
- On Python 3, call directly urllib.parse.quote().
- """
- return _quote(value, safe=safe)
-
-
def encode_utf8(value):
if type(value) in (int, float, bool):
# As of requests 2.11.0, headers must be byte- or unicode-strings.