From 26ef052891939856bdd3a0f2b0e2bb14629e5f90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85ke=20Forslund?= Date: Sun, 29 Mar 2020 13:34:18 +0200 Subject: [PATCH] Minor cleanups - Remove superfluous parentheses - Remove unneccessary pass --- mycroft/util/file_utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mycroft/util/file_utils.py b/mycroft/util/file_utils.py index 67f202f232..9149cee3f3 100644 --- a/mycroft/util/file_utils.py +++ b/mycroft/util/file_utils.py @@ -116,7 +116,7 @@ def read_dict(filename, div='='): d = {} with open(filename, 'r') as f: for line in f: - (key, val) = line.split(div) + key, val = line.split(div) d[key.strip()] = val.strip() return d @@ -248,7 +248,6 @@ def ensure_directory_exists(directory, domain=None): os.makedirs(directory, 0o777) # give everyone rights to r/w here except OSError: LOG.warning("Failed to create: " + directory) - pass finally: os.umask(save)