Skip to content

Commit

Permalink
Fix make_path to use .encode('utf-8') instead of str (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
eranhirs authored and avihad committed Jan 3, 2017
1 parent 41c2090 commit 0d84fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twistes/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def make_path(*sub_paths):
:param sub_paths: a list of sub paths
:return:
"""
queued_params = [quote(str(c), '') for c in sub_paths if c not in NULL_VALUES]
queued_params = [quote(c.encode('utf-8'), '') for c in sub_paths if c not in NULL_VALUES]
queued_params.insert(0, '')
return '/'.join(queued_params)

Expand Down

0 comments on commit 0d84fc3

Please sign in to comment.