From 1bfd9730057b4f272a93dc820a5f9b92c6c22385 Mon Sep 17 00:00:00 2001 From: Brendan Taylor Date: Tue, 28 Dec 2010 10:41:54 -0700 Subject: change open mode for writing cookies to 'a' --- examples/data/plugins/cookies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/data/plugins') diff --git a/examples/data/plugins/cookies.py b/examples/data/plugins/cookies.py index c507fd6..c9fe2c3 100644 --- a/examples/data/plugins/cookies.py +++ b/examples/data/plugins/cookies.py @@ -67,7 +67,7 @@ class TextStore(object): self.delete_cookie(None, cookie[:-3]) first = not os.path.exists(self.filename) - with open(self.filename, 'a+') as f: + with open(self.filename, 'a') as f: if first: print >> f, "# HTTP Cookie File" print >> f, '\t'.join(self.as_file(cookie)) -- cgit v1.2.3