Mercurial > public > mercurial-scm > hg-stable
diff hgext/lfs/blobstore.py @ 36485:9e3cb58c7ab3
py3: make sure regexes are bytes
# skip-blame because we are adding just b'' prefixes
Differential Revision: https://phab.mercurial-scm.org/D2475
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Tue, 27 Feb 2018 14:28:17 +0530 |
parents | 9b413478f261 |
children | 4da09b46451e |
line wrap: on
line diff
--- a/hgext/lfs/blobstore.py Tue Feb 27 00:43:37 2018 +0530 +++ b/hgext/lfs/blobstore.py Tue Feb 27 14:28:17 2018 +0530 @@ -27,7 +27,7 @@ from ..largefiles import lfutil # 64 bytes for SHA256 -_lfsre = re.compile(r'\A[a-f0-9]{64}\Z') +_lfsre = re.compile(br'\A[a-f0-9]{64}\Z') class lfsvfs(vfsmod.vfs): def join(self, path):