summaryrefslogtreecommitdiffstats
path: root/format.py
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-09-30 20:52:24 +0200
committerJan Pokorný <jpokorny@redhat.com>2014-10-08 16:41:20 +0200
commit403a5c92fb3cd55baefa6be988a2466d895798b6 (patch)
tree4502606087ebc1616fb4ab33b298b7b2b03ee91a /format.py
parent5f27ecf5090e5b6ae25ac62911095661c30a5508 (diff)
downloadclufter-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.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/format.py b/format.py
index dd27633..e6f7eae 100644
--- a/format.py
+++ b/format.py
@@ -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