fixed first_available_found for template, refactored into common function

added deprecation warning
fixed display.deprecated to make version optional (code already assumed this)
turned warning + 'deprecated' in plugin loader into actual call to deprecated()
This commit is contained in:
Brian Coca
2015-07-15 19:47:59 -04:00
parent ba7243c5f9
commit 5a5b7ff561
5 changed files with 30 additions and 34 deletions

View File

@@ -250,8 +250,7 @@ class PluginLoader:
if alias_name in self._plugin_path_cache:
if not os.path.islink(self._plugin_path_cache[alias_name]):
d = Display()
d.warning('%s has been deprecated, which means '
'it is kept for backwards compatibility '
d.deprecated('%s is kept for backwards compatibility '
'but usage is discouraged. The module '
'documentation details page may explain '
'more about this rationale.' %