From 6da4c4bf6667cfb0b6f0d4dfbc8ab6d2be5ef09a Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Thu, 13 Jan 2022 19:45:02 +0000 Subject: [PATCH] Restore PY2 for 3rd-party plugins Restored PY2 to avoid breaking compatibility with plugins that imported PY2 from common. Ref: https://bitbucket.org/bendikro/deluge-yarss-plugin/issues/67/deluge-210-removed-all-py2-support --- deluge/common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deluge/common.py b/deluge/common.py index 66bf1d12e..d6d5312ca 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -75,6 +75,9 @@ JSON_FORMAT = {'indent': 4, 'sort_keys': True, 'ensure_ascii': False} DBUS_FM_ID = 'org.freedesktop.FileManager1' DBUS_FM_PATH = '/org/freedesktop/FileManager1' +# Retained for plugin backward compatibility +PY2 = False + def get_version(): """The program version from the egg metadata.