frej / fast-export

A mercurial to git converter using git-fast-import
http://repo.or.cz/w/fast-export.git
808 stars 255 forks source link

Fix escape in regular expression #320

Closed sth closed 7 months ago

sth commented 8 months ago

The string used to create the regular expression should contain literal backslashes, so they need to be escaped. Python 12 warns about it:

hg-fast-export.py:231: SyntaxWarning: invalid escape sequence '\.'
frej commented 7 months ago

Thank you for your contribution @sth.