summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fb.py b/fb.py
index 4e46c1f..6a69769 100755
--- a/fb.py
+++ b/fb.py
@@ -738,7 +738,7 @@ class FBClient:
resp = self.curlw.send_post('/user/create_apikey', data)
self.makedirs(os.path.dirname(self.config['apikey_file']))
- open(self.config['apikey_file'], 'w').write(resp['new_key'])
+ open(self.config['apikey_file'], 'w').write(resp['new_key']).close()
class File:
path = None