From d18fa6dd6b74cef86cdcd65869e74d30ada00c0b Mon Sep 17 00:00:00 2001 From: Anders Ingemann Date: Sun, 9 Jun 2013 18:26:36 +0200 Subject: [PATCH] Use prettier format syntax --- base/manifest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/manifest.py b/base/manifest.py index 5c38c6b..ca0429b 100644 --- a/base/manifest.py +++ b/base/manifest.py @@ -6,7 +6,7 @@ def load_manifest(path): def get_provider(data): - provider = __import__('providers.%s' % data['provider'], fromlist=['providers']) + provider = __import__('providers.{module}'.format(module=data['provider']), fromlist=['providers']) return provider @@ -28,5 +28,5 @@ class Manifest(object): self.loaded_plugins = [] for modname in self.plugins.keys(): if self.plugins[modname]['enabled']: - plugin = __import__('plugins.%s' % modname, fromlist=['plugins']) + plugin = __import__('plugins.{module}'.format(module=modname), fromlist=['plugins']) self.loaded_plugins.append(plugin)