diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2022-02-06 16:27:47 +0000 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2022-02-06 16:27:47 +0000 |
commit | bd88f78af638ec9fafd38cd7787f2d93777428df (patch) | |
tree | 73ea7d62835f64e4906e20e191e769fb335da999 /deluge | |
parent | bf97bec994cce7b68e2de9713a1e58e75a5d87d2 (diff) | |
download | deluge-bd88f78af638ec9fafd38cd7787f2d93777428df.tar.gz deluge-bd88f78af638ec9fafd38cd7787f2d93777428df.tar.bz2 deluge-bd88f78af638ec9fafd38cd7787f2d93777428df.zip |
[Plugins] Fix namespace deprecation warning
The plugin namespace was changed from deluge.plugins to deluge_
in 535b13b5f1b7b7 but deprecation warning was not updated.
Diffstat (limited to 'deluge')
-rw-r--r-- | deluge/pluginmanagerbase.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deluge/pluginmanagerbase.py b/deluge/pluginmanagerbase.py index cea08ccb9..835dbb268 100644 --- a/deluge/pluginmanagerbase.py +++ b/deluge/pluginmanagerbase.py @@ -35,7 +35,7 @@ METADATA_KEYS = [ ] DEPRECATION_WARNING = """ -The plugin %s is not using the "deluge.plugins" namespace. +The plugin %s is not using the "deluge_" namespace. In order to avoid package name clashes between regular python packages and deluge plugins, the way deluge plugins should be created has changed. If you're seeing this message and you're not the developer of the plugin which @@ -162,7 +162,7 @@ class PluginManagerBase: log.exception(ex) return_d = defer.fail(False) - if not instance.__module__.startswith('deluge.plugins.'): + if not instance.__module__.startswith('deluge_'): import warnings warnings.warn_explicit( |