aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/plugins
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <whateley@gmail.com>2010-12-28 10:41:54 -0700
committerGravatar Brendan Taylor <whateley@gmail.com>2010-12-28 10:42:32 -0700
commit1bfd9730057b4f272a93dc820a5f9b92c6c22385 (patch)
treec9d89fd003323cc7c2f5c89375577fe92485915b /examples/data/plugins
parent508b52bbf5d2db49b42bda1528097f19f5b9a883 (diff)
change open mode for writing cookies to 'a'
Diffstat (limited to 'examples/data/plugins')
-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 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))