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

[MRG] Use correct re.sub signature #186

Merged
merged 1 commit into from
Aug 25, 2020

Conversation

pevisscher
Copy link
Contributor

text_strip currently passes the regex flags as the count parameters, which is hardcoded to re.UNICODE (value 32), and thus only replaces the first 32 values.

see https://docs.python.org/3/library/re.html#re.sub for the signature

`text_strip` currently passes the regex flags as the count parameters, which is hardcoded to `re.UNICODE` (value 32), and thus only replaces the first 32 values.

see https://docs.python.org/3/library/re.html#re.sub for the signature
@vinayak-mehta
Copy link
Member

Thanks for catching and fixing this!

@vinayak-mehta
Copy link
Member

Closing and reopening to see if it triggers a Travis build.

@vinayak-mehta
Copy link
Member

Looks like Travis has changed a bunch of settings, let me see how to get it to work.

@vinayak-mehta
Copy link
Member

Ok trying again.

@vinayak-mehta vinayak-mehta reopened this Aug 25, 2020
@vinayak-mehta vinayak-mehta changed the title Use correct re.sub signature [MRG] Use correct re.sub signature Aug 25, 2020
@vinayak-mehta vinayak-mehta merged commit cc905ff into camelot-dev:master Aug 25, 2020
@vinayak-mehta
Copy link
Member

💚 💙 💜 💛 ❤️

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.

2 participants