Skip to content
Snippets Groups Projects
Commit 247e083a authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

update for precondition: print() removed

parent 6dd9475a
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,6 @@ def precondition(*t_ops): ...@@ -55,7 +55,6 @@ def precondition(*t_ops):
assert len(args) >= len(tn_ops), 'More preconditions than positional arguments!' assert len(args) >= len(tn_ops), 'More preconditions than positional arguments!'
with rethrow_as(TypeError, PreconditionError): with rethrow_as(TypeError, PreconditionError):
for arg, precond in itertools.zip_longest(args, tn_ops, fillvalue=_TRUE): for arg, precond in itertools.zip_longest(args, tn_ops, fillvalue=_TRUE):
print(arg, precond, precond.__doc__)
if not precond(arg): if not precond(arg):
raise PreconditionError( raise PreconditionError(
'Argument of value %s failed precondition check' % (arg,)) 'Argument of value %s failed precondition check' % (arg,))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment