-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invoking rule with argument #37
Conversation
@@ -68,6 +68,14 @@ def end(self): | |||
self.callback(*x) | |||
|
|||
|
|||
def setNext(self, rule): | |||
if isinstance(rule, basestring): | |||
rule = (rule, ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd invert this and make any non-tuple into a tuple. Don't bother checking for lists or strings.
looks generally fine, but needs tests! |
@@ -131,7 +131,6 @@ def joinErrors(errors): | |||
""" | |||
if len(errors) == 1: | |||
return errors[0] | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is kind of unnecessary.
@habnabit Is this ok? |
Addressing issue: https://github.com/washort/parsley/issues/36