mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix a syntax typo
This worked for now, but is SyntaxError in Python 3.9.0a6:
File "/usr/lib/python3.9/site-packages/ipapython/cookie.py", line 222
return'/'
^
SyntaxError: invalid string prefix
(The Python change might actually be reverted before 3.9 final,
but this can be fixed anyway.)
Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
committed by
Christian Heimes
parent
f4892d42af
commit
35e1ebb2f3
@@ -219,7 +219,7 @@ class Cookie:
|
||||
return '/'
|
||||
|
||||
if url_path.count('/') <= 1:
|
||||
return'/'
|
||||
return '/'
|
||||
|
||||
return url_path[:url_path.rindex('/')]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user