Replace %r with %s on printing string variable
Change-Id: Idd8c15255f024bba7079d3a9a29545dec0c91b58
This commit is contained in:
parent
4742d4df70
commit
7ef2867ff6
@ -132,13 +132,13 @@ def get_plugin_modules(group):
|
|||||||
"""Find plugin entry points"""
|
"""Find plugin entry points"""
|
||||||
mod_list = []
|
mod_list = []
|
||||||
for ep in pkg_resources.iter_entry_points(group):
|
for ep in pkg_resources.iter_entry_points(group):
|
||||||
LOG.debug('Found plugin %r', ep.name)
|
LOG.debug('Found plugin %s', ep.name)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
__import__(ep.module_name)
|
__import__(ep.module_name)
|
||||||
except Exception:
|
except Exception:
|
||||||
sys.stderr.write(
|
sys.stderr.write(
|
||||||
"WARNING: Failed to import plugin %r.\n" % ep.name)
|
"WARNING: Failed to import plugin %s.\n" % ep.name)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
module = sys.modules[ep.module_name]
|
module = sys.modules[ep.module_name]
|
||||||
|
Loading…
Reference in New Issue
Block a user