Merge pull request #186 from pevisscher/patch-1

Use correct re.sub signature
pull/189/head
Vinayak Mehta 2020-08-25 19:14:58 +05:30 committed by GitHub
commit cc905ff2d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -411,7 +411,7 @@ def text_strip(text, strip=""):
return text return text
stripped = re.sub( stripped = re.sub(
fr"[{''.join(map(re.escape, strip))}]", "", text, re.UNICODE fr"[{''.join(map(re.escape, strip))}]", "", text, flags=re.UNICODE
) )
return stripped return stripped