We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00ec365 commit 82b1545Copy full SHA for 82b1545
1 file changed
textile/core.py
@@ -942,10 +942,16 @@ def encode_url(self, url):
942
quote(netloc_parsed['password']))
943
host = netloc_parsed['host']
944
port = netloc_parsed['port'] and netloc_parsed['port']
945
- path = '/'.join( # could be encoded slashes!
946
- quote(unquote(pce.encode('utf8')), b'')
947
- for pce in parsed.path.split('/')
948
- )
+ if six.PY2:
+ path = '/'.join( # could be encoded slashes!
+ quote(unquote(pce.encode('utf8')), b'')
+ for pce in parsed.path.split('/')
949
+ )
950
+ else:
951
952
+ quote(unquote(pce), b'')
953
954
955
fragment = quote(unquote(parsed.fragment))
956
957
# put it back together
0 commit comments