diff options
Diffstat (limited to 'openid/urinorm.py')
-rw-r--r-- | openid/urinorm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openid/urinorm.py b/openid/urinorm.py index 6a5a588..9678741 100644 --- a/openid/urinorm.py +++ b/openid/urinorm.py @@ -122,10 +122,10 @@ def urinorm(uri): # This is hackish. `unquote` and `quote` requires `str` in both py27 and py3+. if isinstance(path, str): # Python 3 branch - path = quote(unquote(path)) + path = quote(unquote(path), safe='/' + SUB_DELIMS) else: # Python 2 branch - path = quote(unquote(path.encode('utf-8'))).decode('utf-8') + path = quote(unquote(path.encode('utf-8')), safe=('/' + SUB_DELIMS).encode('utf-8')).decode('utf-8') path = remove_dot_segments(path) if not path: |