Merge pull request #186 from pevisscher/patch-1
Use correct re.sub signature
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user