Mercurial > hg
diff hgext/convert/cvs.py @ 36393:54f4328a07c2
py3: make sure regexes are bytes
# skip-blame because we added just b'' prefix
Differential Revision: https://phab.mercurial-scm.org/D2416
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 24 Feb 2018 16:06:21 +0530 |
parents | 42a393ea56d2 |
children | c6061cadb400 |
line wrap: on
line diff
--- a/hgext/convert/cvs.py Sat Feb 24 16:04:57 2018 +0530 +++ b/hgext/convert/cvs.py Sat Feb 24 16:06:21 2018 +0530 @@ -179,7 +179,7 @@ # :ext:user@host/home/user/path/to/cvsroot if root.startswith(":ext:"): root = root[5:] - m = re.match(r'(?:([^@:/]+)@)?([^:/]+):?(.*)', root) + m = re.match(br'(?:([^@:/]+)@)?([^:/]+):?(.*)', root) # Do not take Windows path "c:\foo\bar" for a connection strings if os.path.isdir(root) or not m: conntype = "local"