mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 00:48:41 +00:00
[Plugins] Fix namespace deprecation warning
The plugin namespace was changed from deluge.plugins to deluge_
in 535b13b5f1
but deprecation warning was not updated.
This commit is contained in:
parent
bf97bec994
commit
bd88f78af6
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ METADATA_KEYS = [
|
||||||
]
|
]
|
||||||
|
|
||||||
DEPRECATION_WARNING = """
|
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
|
In order to avoid package name clashes between regular python packages and
|
||||||
deluge plugins, the way deluge plugins should be created has changed.
|
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
|
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)
|
log.exception(ex)
|
||||||
return_d = defer.fail(False)
|
return_d = defer.fail(False)
|
||||||
|
|
||||||
if not instance.__module__.startswith('deluge.plugins.'):
|
if not instance.__module__.startswith('deluge_'):
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
warnings.warn_explicit(
|
warnings.warn_explicit(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue