aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/plugins/cookies.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/data/plugins/cookies.py')
-rw-r--r--examples/data/plugins/cookies.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/data/plugins/cookies.py b/examples/data/plugins/cookies.py
index 0264471..a4ae530 100644
--- a/examples/data/plugins/cookies.py
+++ b/examples/data/plugins/cookies.py
@@ -66,7 +66,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))