From f0c9fabce27998ec3f8358cac291cd42f76553fb Mon Sep 17 00:00:00 2001 From: henrylicious Date: Sun, 24 Mar 2024 11:15:45 +0100 Subject: [PATCH] autopep aggressive E225~E228,E231 --- lib/python/Components/About.py | 2 +- lib/python/Plugins/Extensions/YTDLWrapper/plugin.py | 2 +- lib/python/Screens/FlashImage.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/python/Components/About.py b/lib/python/Components/About.py index 5f9fc56807..af88323f02 100644 --- a/lib/python/Components/About.py +++ b/lib/python/Components/About.py @@ -101,7 +101,7 @@ def getCPUSpeedString(): return "1,5 GHz" elif getMachineBuild() in ('vuuno4k', 'dm900', 'gb7252', 'dags7252'): return "1,7 GHz" - elif getMachineBuild() in ('dagsmv200', 'gbmv200', 'u51', 'u52', 'u53', 'u532', 'u533', 'u54', 'u55', 'u56', 'u57', 'u571', 'u5', 'u5pvr', 'h9', 'i55se', 'h9se', 'h9combose', 'h9combo', 'h10', 'h11', 'cc1', 'sf8008', 'sf8008m', 'sf8008opt', 'sx988', 'sx88v2', 'ip8','hd60', 'hd61', 'pulse4k', 'pulse4kmini', 'i55plus', 'ustym4kpro', 'ustym4kott', 'beyonwizv2', 'viper4k', 'multibox', 'multiboxse', 'sx88v2', 'sx888'): + elif getMachineBuild() in ('dagsmv200', 'gbmv200', 'u51', 'u52', 'u53', 'u532', 'u533', 'u54', 'u55', 'u56', 'u57', 'u571', 'u5', 'u5pvr', 'h9', 'i55se', 'h9se', 'h9combose', 'h9combo', 'h10', 'h11', 'cc1', 'sf8008', 'sf8008m', 'sf8008opt', 'sx988', 'sx88v2', 'ip8', 'hd60', 'hd61', 'pulse4k', 'pulse4kmini', 'i55plus', 'ustym4kpro', 'ustym4kott', 'beyonwizv2', 'viper4k', 'multibox', 'multiboxse', 'sx88v2', 'sx888'): return "1,6 GHz" elif getMachineBuild() in ('sfx6008', 'sfx6018'): return "1,2 GHz" diff --git a/lib/python/Plugins/Extensions/YTDLWrapper/plugin.py b/lib/python/Plugins/Extensions/YTDLWrapper/plugin.py index b53438dda2..2a3f616d1b 100644 --- a/lib/python/Plugins/Extensions/YTDLWrapper/plugin.py +++ b/lib/python/Plugins/Extensions/YTDLWrapper/plugin.py @@ -21,7 +21,7 @@ def zap(session, service, **kwargs): if result and hasattr(result, "url"): url = result['url'] print("[ChannelSelection] zap / YoutubeDL result url %s" % url) - return (url,errormsg) + return (url, errormsg) else: errormsg = "No Link found!" print("[ChannelSelection] zap / YoutubeDL no streams") diff --git a/lib/python/Screens/FlashImage.py b/lib/python/Screens/FlashImage.py index 86b4306c57..0e3af79562 100644 --- a/lib/python/Screens/FlashImage.py +++ b/lib/python/Screens/FlashImage.py @@ -408,7 +408,7 @@ def downloadError(self, reason): self.downloader.stop() self.session.openWithCallback(self.abort, MessageBox, _("Error during downloading image\n%s\n%s") % (self.imagename, reason), type=MessageBox.TYPE_ERROR, simple=True) - def downloadEnd(self,filename=None): + def downloadEnd(self, filename=None): self.downloader.stop() self.unzip()