From 0392dca510fe2105edd69c2a1f39098086174337 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 4 May 2020 00:29:15 +0200 Subject: [PATCH] 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 --- ipapython/cookie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipapython/cookie.py b/ipapython/cookie.py index 1054e55b6..a46b81b90 100644 --- a/ipapython/cookie.py +++ b/ipapython/cookie.py @@ -219,7 +219,7 @@ class Cookie: return '/' if url_path.count('/') <= 1: - return'/' + return '/' return url_path[:url_path.rindex('/')]