changeset 630:042c8b49ce7f

0.6dev: Follow-up to [702] - flawed logic in argument testing.
author osimons
date Tue, 11 Aug 2009 23:20:13 +0000
parents f3bb52da9e3c
children 0c11c58d1985
files bitten/recipe.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/recipe.py
+++ b/bitten/recipe.py
@@ -96,7 +96,7 @@
                          for name in attr])
             function_args, has_kwargs = inspect.getargspec(function)[0:3:2]
             for arg in args:
-                if not arg in function_args or not has_kwargs:
+                if not (arg in function_args or has_kwargs):
                     raise InvalidRecipeError(
                             "Unsupported argument '%s' for command %s" % \
                             (arg, qname))
Copyright (C) 2012-2017 Edgewall Software