Closed jwilk closed 5 years ago
The 4th argument of re.sub() is maximum number of substitutions, not flags. Moreover, re.MULTILINE affects only semantics of ^ and $, so it wouldn't have any effect on this regular expression.
re.sub()
re.MULTILINE
^
$
Found using pydiatra.
@jwilk This has been merged in https://github.com/rss2email/rss2email/ (following maintainership changes), care to close this PR? :)
The 4th argument of
re.sub()
is maximum number of substitutions, not flags. Moreover,re.MULTILINE
affects only semantics of^
and$
, so it wouldn't have any effect on this regular expression.Found using pydiatra.