comparison mercurial/store.py @ 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 cf6e1d535602
children 584ff1f97201
comparison
equal deleted inserted replaced
50318:3bb7c56e8fe6 50319:4be9ecc982e1
401 REVLOG_FILES_VOLATILE_EXT = (b'.n', b'.nd') 401 REVLOG_FILES_VOLATILE_EXT = (b'.n', b'.nd')
402 402
403 # some exception to the above matching 403 # some exception to the above matching
404 # 404 #
405 # XXX This is currently not in use because of issue6542 405 # XXX This is currently not in use because of issue6542
406 EXCLUDED = re.compile(b'.*undo\.[^/]+\.(nd?|i)$') 406 EXCLUDED = re.compile(br'.*undo\.[^/]+\.(nd?|i)$')
407 407
408 408
409 def is_revlog(f, kind, st): 409 def is_revlog(f, kind, st):
410 if kind != stat.S_IFREG: 410 if kind != stat.S_IFREG:
411 return None 411 return None