diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-11-14 13:17:24 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-11-14 22:11:14 +0100 |
commit | 7031790bb9384ca67d02cb49da4973e79ede6d84 (patch) | |
tree | d957c39138b3b57c3fd101b0cb1ead57d8aa8291 | |
parent | c26f2ef482170e3cb8352b97cc197ead8c184edb (diff) | |
download | clufter-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.py | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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 |