summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDirk Mallunat <s4msung@exigen.org>2016-07-05 00:27:23 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-07-05 00:30:08 +0200
commit78cb251326ca4c5be41cf6003365cd649b65c562 (patch)
treee89aeff36556ba02fb6dec383ae65a8b7d40ecdf
parent29634278eb84fcdd1b29b85ed2ce8c5250e4a183 (diff)
Close apikey file explicity
FP: Reword commit message Signed-off-by: Florian Pritz <bluewind@xinu.at>
-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