changeset 50319:4be9ecc982e1 stable

py3: fix for Python 3.12 emitting SyntaxWarning on invalid escape sequences Missed in 805d4a462abb: $ python3.12 mercurial/store.py mercurial/store.py:406: SyntaxWarning: invalid escape sequence '\.' EXCLUDED = re.compile(b'.*undo\.[^/]+\.(nd?|i)$')
author Mads Kiilerich <mads@kiilerich.com>
date Tue, 21 Mar 2023 17:07:22 +0100
parents 3bb7c56e8fe6
children 9c5e743e400c
files mercurial/store.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/store.py	Tue Mar 21 15:27:03 2023 +0100
+++ b/mercurial/store.py	Tue Mar 21 17:07:22 2023 +0100
@@ -403,7 +403,7 @@
 # some exception to the above matching
 #
 # XXX This is currently not in use because of issue6542
-EXCLUDED = re.compile(b'.*undo\.[^/]+\.(nd?|i)$')
+EXCLUDED = re.compile(br'.*undo\.[^/]+\.(nd?|i)$')
 
 
 def is_revlog(f, kind, st):