summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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