Merge pull request #186 from pevisscher/patch-1

Use correct re.sub signature
This commit is contained in:
Vinayak Mehta
2020-08-25 19:14:58 +05:30
committed by GitHub
+1 -1
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