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

Pull flags out of regular expressions #462

Merged
merged 1 commit into from
Mar 10, 2017

Conversation

singingwolfboy
Copy link
Contributor

In Python, you can pass flags to regular expressions. There are two ways to do so: by passing the flag as a flag argument to whatever regex function you're using, or by embedding the flag in the regex itself. If the flag is embedded in the regex, it is ambiguous unless it is at the start of the expression, and in Python 3.6 this is now deprecated.

This pull request pulls all flags out of regexes and passes them via the flag argument, instead. This is clearer and more consistent.

@akx
Copy link
Member

akx commented Mar 10, 2017

Looks good, thanks @singingwolfboy!

Can you git commit --amend --reset-author and force-push this branch to force appveyor to re-check the PR? It seems to have had an intermittent failure of some sort I can't work around. Edit: Never mind :)

@akx akx self-assigned this Mar 10, 2017
@akx
Copy link
Member

akx commented Mar 10, 2017

(Also, @sils, can you make the Appveyor build non-required for merge? It seems to be flaky.)

@sils
Copy link
Member

sils commented Mar 10, 2017

(Everything for you @akx :))

@akx akx merged commit 6f0d13b into python-babel:master Mar 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants