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

re example in readme appears to be incorrect #3

Closed
ncoghlan opened this issue Oct 9, 2012 · 1 comment
Closed

re example in readme appears to be incorrect #3

ncoghlan opened this issue Oct 9, 2012 · 1 comment

Comments

@ncoghlan
Copy link

ncoghlan commented Oct 9, 2012

The example in the readme will fail with an AttributeError in the case where neither regex matches. The check for "m is None" needs to be first, with the else clause unused.

@hynek
Copy link
Owner

hynek commented Oct 9, 2012

I just fixed it in c583193 after you pointed it out on Twitter. When I wrote “it’s just an example”, I misremembered the example. Thanks again!

@hynek hynek closed this as completed Oct 9, 2012
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

No branches or pull requests

2 participants