Skip to content

Commit

Permalink
autopep8
Browse files Browse the repository at this point in the history
  • Loading branch information
krisgesling committed Sep 6, 2021
1 parent d299b59 commit 3e09456
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ def get_max_version(self, version_list: list([str])) -> tuple((int, int, int)):
This assumes versions are using the mycroft-core versioning system.
"""
versions = [self.find_version(version_str) for version_str in version_list]
versions = [self.find_version(version_str)
for version_str in version_list]
major, minor, patch = -1, -1, -1
for version in versions:
newer = False
Expand Down Expand Up @@ -131,7 +132,7 @@ def get_allowed_ver(self):
if v:
# Convert 18.2 into [18, 2, 999]
v = float(v) # in case someone entered it as a string
return [int(v), int(str(round(v-int(v),2))[2:]), 999]
return [int(v), int(str(round(v-int(v), 2))[2:]), 999]
else:
# assume current major/minor version is legit
return [CORE_VERSION_MAJOR, CORE_VERSION_MINOR, 999]
Expand Down Expand Up @@ -198,7 +199,8 @@ def check_platform_build(self, message):
self.enclosure.deactivate_mouth_events()
self.enclosure.mouth_text(build)

self.speak_dialog('platform.build', data={'build': build}, wait=True)
self.speak_dialog('platform.build', data={
'build': build}, wait=True)

self.enclosure.activate_mouth_events()
else:
Expand Down Expand Up @@ -278,7 +280,7 @@ def _ask_about_major_upgrade(self):
plat = self.config_core.get('enclosure', {}).get('platform')
self.bus.emit(Message('system.update',
{'is_paired': True,
'platform': plat}))
'platform': plat}))
else:
self.speak_dialog('major.upgrade.declined')

Expand Down

0 comments on commit 3e09456

Please sign in to comment.