Skip to content
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

Merged
merged 5 commits into from
Aug 27, 2013
Merged

invoking rule with argument #37

merged 5 commits into from
Aug 27, 2013

Conversation

introom
Copy link
Contributor

@introom introom commented Aug 7, 2013

@@ -68,6 +68,14 @@ def end(self):
self.callback(*x)


def setNext(self, rule):
if isinstance(rule, basestring):
rule = (rule, )
Copy link
Contributor

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.

@habnabit
Copy link
Contributor

habnabit commented Aug 8, 2013

looks generally fine, but needs tests!

@@ -131,7 +131,6 @@ def joinErrors(errors):
"""
if len(errors) == 1:
return errors[0]

Copy link
Contributor

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.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) when pulling 5d13432 on introom:rule_argument into 30e706e on python-parsley:master.

@introom
Copy link
Contributor Author

introom commented Aug 23, 2013

@habnabit Is this ok?

habnabit added a commit that referenced this pull request Aug 27, 2013
@habnabit habnabit merged commit e58c0c6 into pyga:master Aug 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants