summaryrefslogtreecommitdiffstats
path: root/fb.py
diff options
context:
space:
mode:
Diffstat (limited to 'fb.py')
-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