summaryrefslogtreecommitdiffstats
path: root/subcmds
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds')
-rw-r--r--subcmds/sync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index cb285290..849e878c 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -1202,7 +1202,7 @@ class PersistentTransport(xmlrpc.client.Transport):
1202 # Since we're only using them for HTTP, copy the file temporarily, 1202 # Since we're only using them for HTTP, copy the file temporarily,
1203 # stripping those prefixes away. 1203 # stripping those prefixes away.
1204 if cookiefile: 1204 if cookiefile:
1205 tmpcookiefile = tempfile.NamedTemporaryFile() 1205 tmpcookiefile = tempfile.NamedTemporaryFile(mode='w')
1206 tmpcookiefile.write("# HTTP Cookie File") 1206 tmpcookiefile.write("# HTTP Cookie File")
1207 try: 1207 try:
1208 with open(cookiefile) as f: 1208 with open(cookiefile) as f: