diff --git a/Lib/Cookie.py b/Lib/Cookie.py index 616377cf736..2eda48c0bb1 100644 --- a/Lib/Cookie.py +++ b/Lib/Cookie.py @@ -539,7 +539,7 @@ def OutputString(self, attrs=None): r"(?P" # Start of group 'val' r'"(?:[^\\"]|\\.)*"' # Any doublequoted string r"|" # or - r"\w{3},\s[\w\d-]{9,11}\s[\d:]{8}\sGMT" # Special case for "expires" attr + r"\w{3},\s[\s\w\d-]{9,11}\s[\d:]{8}\sGMT" # Special case for "expires" attr r"|" # or ""+ _LegalCharsPatt +"*" # Any word or empty string r")" # End of group 'val'