summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-11-14 13:17:24 +0100
committerJan Pokorný <jpokorny@redhat.com>2014-11-14 22:11:14 +0100
commit7031790bb9384ca67d02cb49da4973e79ede6d84 (patch)
treed957c39138b3b57c3fd101b0cb1ead57d8aa8291
parentc26f2ef482170e3cb8352b97cc197ead8c184edb (diff)
downloadclufter-7031790bb9384ca67d02cb49da4973e79ede6d84.tar.gz
clufter-7031790bb9384ca67d02cb49da4973e79ede6d84.tar.xz
clufter-7031790bb9384ca67d02cb49da4973e79ede6d84.zip
command: fix factual discrepancy in the name of a variable
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--command.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/command.py b/command.py
index cf53e6e..273608d 100644
--- a/command.py
+++ b/command.py
@@ -332,14 +332,15 @@ class Command(object):
if protodecl(i) else i if any(i) else None
)(check)
checked_flat = apply_intercalate((checked,))
- for order, cmd in filter(lambda (i, x): x,
- enumerate(checked_flat)):
+ for order, proto in filter(lambda (i, x): x,
+ enumerate(checked_flat)):
raise CommandError(me,
"filter resolution #{0} of {1}: {2}", order + 1,
('input', 'output')[passno],
- "filter/io chain definition (shape) mismatch"
- if isinstance(cmd, (type(zip_empty), Filter))
- else "`{0}' protocol not suitable".format(cmd)
+ "`{0}' filter/io chain definition (shape) mismatch"
+ .format(proto)
+ if isinstance(proto, (type(zip_empty), Filter))
+ else "`{0}' protocol not suitable".format(proto)
)
return to_check