From 7af1a441cf04cbb28876af213913b7d41c25204c Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Sun, 14 Jan 2018 18:24:51 +0100 Subject: [PATCH] fix library/fastd_key for python 3.5 --- library/fastd_key | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/fastd_key b/library/fastd_key index 6113d8b..99e4982 100644 --- a/library/fastd_key +++ b/library/fastd_key @@ -21,7 +21,7 @@ if __name__ == '__main__': # file does not exist or is empty? if not os.path.isfile(path) or os.stat(path).st_size == 0: # create file with restrictive permissions - with os.fdopen(os.open(path, os.O_WRONLY | os.O_CREAT, 0600), 'w') as handle: + with os.fdopen(os.open(path, os.O_WRONLY | os.O_CREAT, 0o600), 'w') as handle: # generate fastd secret secret = subprocess.check_output(["fastd", "--machine-readable", "--generate-key"]).strip() handle.write('secret "%s";\n' % secret)