This commit is contained in:
Miroslav Stampar 2015-10-31 10:16:44 +01:00
parent 04aaa5985b
commit 4dc0c05172

View File

@ -3861,7 +3861,7 @@ def resetCookieJar(cookieJar):
os.close(handle) os.close(handle)
# Reference: http://www.hashbangcode.com/blog/netscape-http-cooke-file-parser-php-584.html # 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) f.write("%s\n" % NETSCAPE_FORMAT_HEADER_COOKIES)
for line in lines: for line in lines:
_ = line.split("\t") _ = line.split("\t")