From 0392dca510fe2105edd69c2a1f39098086174337 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: May 04 2020 12:11:47 +0000 Subject: 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 --- diff --git a/ipapython/cookie.py b/ipapython/cookie.py index 1054e55..a46b81b 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('/')]