Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

Commit d0e70d8

Browse files
author
jarbasai
committed
pep8
1 parent da943ca commit d0e70d8

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

mycroft/configuration/mycroft.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
// TODO: Old unused kludge, remove from code
8585
"stop_threshold": 2.0,
8686
// blacklisted skills to not load
87-
"blacklisted_skills": ["skill-media", "send_sms", "skill-wolfram-alpha"]
87+
"blacklisted_skills": ["skill-media", "send_sms", "skill-wolfram-alpha"],
8888
// priority skills to be loaded first
8989
"priority_skills": []
9090
},

mycroft/skills/main.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ def run(self):
219219
# Load priority skills first by order
220220
if exists(SKILLS_DIR):
221221
# checking skills dir and getting all priority skills there
222-
list = [folder for folder in
223-
filter(lambda x: os.path.isdir(os.path.join(SKILLS_DIR, x)),
224-
os.listdir(SKILLS_DIR)) if folder in PRIORITY_SKILLS]
222+
list = [folder for folder in filter(
223+
lambda x: os.path.isdir(os.path.join(SKILLS_DIR, x)),
224+
os.listdir(SKILLS_DIR)) if folder in PRIORITY_SKILLS]
225225
for skill_folder in list:
226226
id_counter += 1
227227
skill = {"id": id_counter}
@@ -265,8 +265,8 @@ def run(self):
265265
"loaded") and modified <= last_modified_skill:
266266
continue
267267
# checking if skill was modified
268-
elif (skill.get("instance") and
269-
modified > last_modified_skill):
268+
elif (skill.get("instance") and modified >
269+
last_modified_skill):
270270
# checking if skill should be reloaded
271271
if not skill["instance"].reload_skill:
272272
continue
@@ -277,10 +277,11 @@ def run(self):
277277
# -2 since two local references that are known
278278
refs = sys.getrefcount(skill["instance"]) - 2
279279
if refs > 0:
280-
logger.warn("After shutdown of {} there are still "
281-
"{} references remaining. The skill "
282-
"won't be cleaned from memory."
283-
.format(skill['instance'].name, refs))
280+
logger.warn(
281+
"After shutdown of {} there are still "
282+
"{} references remaining. The skill "
283+
"won't be cleaned from memory."
284+
.format(skill['instance'].name, refs))
284285
del skill["instance"]
285286
skill["loaded"] = True
286287
skill["instance"] = load_skill(

0 commit comments

Comments
 (0)