Skip to content

Commit

Permalink
Merge branch 'gh/320'
Browse files Browse the repository at this point in the history
Fixes warnings appearing with Python 3.12.

hg-fast-export.py:231: SyntaxWarning: invalid escape sequence '\.'
  • Loading branch information
frej committed Feb 23, 2024
2 parents 53bbe05 + 7b4bb7f commit 997e8e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hg-fast-export.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def dot(name):
if not auto_sanitize:
return mapping.get(name,name)
n=mapping.get(name,name)
p=re.compile(b'([\\[ ~^:?\\\\*]|\.\.)')
p=re.compile(b'([\\[ ~^:?\\\\*]|\\.\\.)')
n=p.sub(b'_', n)
if n[-1:] in (b'/', b'.'): n=n[:-1]+b'_'
n=b'/'.join([dot(s) for s in n.split(b'/')])
Expand Down

0 comments on commit 997e8e1

Please sign in to comment.