Skip to content

Commit 35f32c2

Browse files
committed
will this fix py3k?
1 parent 82c1a42 commit 35f32c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

textile/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ def encode_url(self, url):
939939
for pce in parsed.path.split('/')
940940
)
941941
query_text = parsed.query
942-
if isinstance(query_text, six.text_type):
942+
if six.PY2:
943943
query_text = query_text.encode('utf-8')
944944
query = quote(unquote(query_text), b'=&?/')
945945
fragment = quote(unquote(parsed.fragment))

0 commit comments

Comments
 (0)