Skip to content

Commit b60cc0e

Browse files
committed
removing PY2-specific code.
1 parent 5077b26 commit b60cc0e

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

textile/core.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,12 +1013,8 @@ def encode_url(self, url):
10131013
# slashes, and this is a way to clean that up. It branches for PY2/3
10141014
# because the quote and unquote functions expects different input
10151015
# 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-
parsed.path.split('/'))
1016+
path_parts = (quote(unquote(pce), b'') for pce in
1017+
parsed.path.split('/'))
10221018
path = '/'.join(path_parts)
10231019

10241020
# put it back together

0 commit comments

Comments
 (0)