From 4dc0c05172fbb8cbba36b0e01f7e8b270041fa5f Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 31 Oct 2015 10:16:44 +0100 Subject: [PATCH] Fixes #1505 --- lib/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index 4503b159d..fd1b375fa 100755 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -3861,7 +3861,7 @@ def resetCookieJar(cookieJar): os.close(handle) # Reference: http://www.hashbangcode.com/blog/netscape-http-cooke-file-parser-php-584.html - with open(filename, "w+b") as f: + with openFile(filename, "w+b") as f: f.write("%s\n" % NETSCAPE_FORMAT_HEADER_COOKIES) for line in lines: _ = line.split("\t")