From 7f2d113c63b1342fcd2de9e09e90f4d95fc68671 Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Tue, 23 Jun 2026 17:49:11 +0100 Subject: [PATCH] Python 3.12 fix --- src/future/backports/http/cookies.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/future/backports/http/cookies.py b/src/future/backports/http/cookies.py index 8bb61e22..cdd5fd21 100644 --- a/src/future/backports/http/cookies.py +++ b/src/future/backports/http/cookies.py @@ -461,7 +461,8 @@ def OutputString(self, attrs=None): )? # End of optional value group \s* # Any number of spaces. (\s+|;|$) # Ending either at space, semicolon, or EOS. - """, re.ASCII) # May be removed if safe. + """, (re.ASCII # May be removed if safe. + | re.VERBOSE)) # Python 3.12 rejects whitespace before (?x) # At long last, here is the cookie class. Using this class is almost just like