Merge "Replace %r with %s on printing string variable"

This commit is contained in:
Zuul 2017-11-28 21:35:55 +00:00 committed by Gerrit Code Review
commit 878410db8d
1 changed files with 2 additions and 2 deletions

View File

@ -132,13 +132,13 @@ def get_plugin_modules(group):
"""Find plugin entry points"""
mod_list = []
for ep in pkg_resources.iter_entry_points(group):
LOG.debug('Found plugin %r', ep.name)
LOG.debug('Found plugin %s', ep.name)
try:
__import__(ep.module_name)
except Exception:
sys.stderr.write(
"WARNING: Failed to import plugin %r.\n" % ep.name)
"WARNING: Failed to import plugin %s.\n" % ep.name)
continue
module = sys.modules[ep.module_name]