wking / rss2email

open-source tool for Windows, Mac OS and UNIX for getting news from RSS feeds in email
http://pypi.python.org/pypi/rss2email/
GNU General Public License v2.0
270 stars 48 forks source link

Remove misplaced flags from re.sub() call #100

Closed jwilk closed 5 years ago

jwilk commented 7 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.

Found using pydiatra.

Ekleog commented 5 years ago

@jwilk This has been merged in https://github.com/rss2email/rss2email/ (following maintainership changes), care to close this PR? :)