diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-09-30 20:52:24 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-10-08 16:41:20 +0200 |
commit | 403a5c92fb3cd55baefa6be988a2466d895798b6 (patch) | |
tree | 4502606087ebc1616fb4ab33b298b7b2b03ee91a /format.py | |
parent | 5f27ecf5090e5b6ae25ac62911095661c30a5508 (diff) | |
download | clufter-403a5c92fb3cd55baefa6be988a2466d895798b6.tar.gz clufter-403a5c92fb3cd55baefa6be988a2466d895798b6.tar.xz clufter-403a5c92fb3cd55baefa6be988a2466d895798b6.zip |
format: fix excessive purification of interpolations dict
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'format.py')
-rw-r--r-- | format.py | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -23,7 +23,6 @@ from .plugin_registry import MetaPlugin, PluginRegistry from .protocol import Protocol from .utils import arg2wrapped, args2sgpl, args2tuple, args2unwrapped, \ classproperty, \ - filterdict_keep, \ head_tail, \ iterattrs, \ immutable, \ @@ -369,11 +368,9 @@ class SimpleFormat(Format, MetaPlugin): """ # turning @DIGIT+ magic files into fileobjs (needs global view) if tuplist(io_decl) and len(io_decl) >= 2 and io_decl[0] == cls.FILE: - interpols = [x.split('.', 1)[0] for x in io_decl[1].split('{')[1:]] try: io_decl = args2tuple(io_decl[0], - io_decl[1].format(**filterdict_keep( - interpolations, *interpols)), + io_decl[1].format(**interpolations), *io_decl[2:]) except (ValueError, KeyError): pass |