From cb42ee294a69934ca5813baf733f04eb0f7bec61 Mon Sep 17 00:00:00 2001 From: Huevos Date: Sat, 11 Dec 2021 21:13:43 +0100 Subject: [PATCH] [plugin.py] "instance" should be a class variable Most likely no one has ever noticed this before because "asserts" are disabled by default in Py2. --- plugin/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/plugin.py b/plugin/plugin.py index cb92896..507d3dd 100644 --- a/plugin/plugin.py +++ b/plugin/plugin.py @@ -94,6 +94,7 @@ def TunerInfo(type=None): class HRTunerProxy_Setup(ConfigListScreen, Screen): + instance = None if isDreamOS: # check if DreamOS image skin = "%s/skins/dreamos_main.xml" % (path.dirname(modules[__name__].__file__)) else: @@ -103,7 +104,6 @@ class HRTunerProxy_Setup(ConfigListScreen, Screen): f.close() def __init__(self, session, menu_path=""): - instance = None Screen.__init__(self, session) if hasattr(config.usage, 'show_menupath'): screentitle = _("HR-Tuner Proxy for Enigma2")