diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-01-13 13:57:52 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-01-13 13:57:52 +0100 |
commit | 57f61761229d23947ae7d59f82238ce522e53db1 (patch) | |
tree | b869ed06a0ffd0acdb213706dbdde7a06ff6e06e /plugin_registry.py | |
parent | 80f2c6ad584d707810c8470d7a9af39cecef8d56 (diff) | |
download | clufter-57f61761229d23947ae7d59f82238ce522e53db1.tar.gz clufter-57f61761229d23947ae7d59f82238ce522e53db1.tar.xz clufter-57f61761229d23947ae7d59f82238ce522e53db1.zip |
Remove usage of "too forward" dict comprehensions
Generators and list comprehensions should be OK in Python 2.6.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'plugin_registry.py')
-rw-r--r-- | plugin_registry.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin_registry.py b/plugin_registry.py index 7ed36e6..2d321d1 100644 --- a/plugin_registry.py +++ b/plugin_registry.py @@ -185,10 +185,10 @@ class PluginRegistry(type): path_plugins = registry._path_mapping[path] # filled as a side-effect of meta-magic, see `__new__` - ret.update({n: registry._plugins[n] for n in path_plugins}) + ret.update((n, registry._plugins[n]) for n in path_plugins) if registry.use_local: # add "built-in" ones - ret.update({n: p for n, p in registry._plugins.iteritems() - if p.__module__ == registry.__module__}) + ret.update((n, p) for n, p in registry._plugins.iteritems() + if p.__module__ == registry.__module__) return ret |