diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py index 57332c6d7c8..7f7f55b1369 100644 --- a/Lib/http/cookiejar.py +++ b/Lib/http/cookiejar.py @@ -1974,9 +1974,9 @@ class MozillaCookieJar(FileCookieJar): """ magic_re = re.compile("#( Netscape)? HTTP Cookie File") header = """\ - # Netscape HTTP Cookie File - # http://www.netscape.com/newsref/std/cookie_spec.html - # This is a generated file! Do not edit. +# Netscape HTTP Cookie File +# http://www.netscape.com/newsref/std/cookie_spec.html +# This is a generated file! Do not edit. """ diff --git a/Misc/NEWS b/Misc/NEWS index 6d63ae98580..3d9a4b6ecd8 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -15,6 +15,9 @@ Core and Builtins Library ------- +- Issue #5147: Fix the header generated for cookie files written by + http.cookiejar.MozillaCookieJar. + - Issue #8198: In pydoc, output all help text to the correct stream when sys.stdout is reassigned.