comparison hgext/convert/cvsps.py @ 36455: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 93943eef696f
children c6061cadb400
comparison
equal deleted inserted replaced
36454:698fe0f6eb5c 36455:9e3cb58c7ab3
168 # :pserver:user@server:/path 168 # :pserver:user@server:/path
169 # and 169 # and
170 # /pserver/user/server/path 170 # /pserver/user/server/path
171 # are mapped to different cache file names. 171 # are mapped to different cache file names.
172 cachefile = root.split(":") + [directory, "cache"] 172 cachefile = root.split(":") + [directory, "cache"]
173 cachefile = ['-'.join(re.findall(r'\w+', s)) for s in cachefile if s] 173 cachefile = ['-'.join(re.findall(br'\w+', s)) for s in cachefile if s]
174 cachefile = os.path.join(cachedir, 174 cachefile = os.path.join(cachedir,
175 '.'.join([s for s in cachefile if s])) 175 '.'.join([s for s in cachefile if s]))
176 176
177 if cache == 'update': 177 if cache == 'update':
178 try: 178 try: