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
This commit is contained in:
Calum Lind 2022-01-13 19:45:02 +00:00
parent d2390cd247
commit 6da4c4bf66
No known key found for this signature in database
GPG Key ID: 90597A687B836BA3
1 changed files with 3 additions and 0 deletions

View File

@ -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.