From 78cb251326ca4c5be41cf6003365cd649b65c562 Mon Sep 17 00:00:00 2001 From: Dirk Mallunat Date: Tue, 5 Jul 2016 00:27:23 +0200 Subject: Close apikey file explicity FP: Reword commit message Signed-off-by: Florian Pritz --- fb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-24-g4f1b