We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5077b26 commit b60cc0eCopy full SHA for b60cc0e
1 file changed
textile/core.py
@@ -1013,12 +1013,8 @@ def encode_url(self, url):
1013
# slashes, and this is a way to clean that up. It branches for PY2/3
1014
# because the quote and unquote functions expects different input
1015
# types: unicode strings for PY2 and str for PY3.
1016
- if six.PY2:
1017
- path_parts = (quote(unquote(pce.encode('utf8')), b'') for pce in
1018
- parsed.path.split('/'))
1019
- else:
1020
- path_parts = (quote(unquote(pce), b'') for pce in
1021
+ path_parts = (quote(unquote(pce), b'') for pce in
+ parsed.path.split('/'))
1022
path = '/'.join(path_parts)
1023
1024
# put it back together
0 commit comments