comparison mercurial/match.py @ 42766:e94c8f584ee2

py3: do not convert rust module/attribute names to bytes policy.import*() functions expect system strings.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 17 Aug 2019 10:25:04 +0900
parents a3a8887e4426
children 72890d8f9860
comparison
equal deleted inserted replaced
42765:0770e221d24b 42766:e94c8f584ee2
23 ) 23 )
24 from .utils import ( 24 from .utils import (
25 stringutil, 25 stringutil,
26 ) 26 )
27 27
28 rustmod = policy.importrust('filepatterns') 28 rustmod = policy.importrust(r'filepatterns')
29 29
30 allpatternkinds = ('re', 'glob', 'path', 'relglob', 'relpath', 'relre', 30 allpatternkinds = ('re', 'glob', 'path', 'relglob', 'relpath', 'relre',
31 'rootglob', 31 'rootglob',
32 'listfile', 'listfile0', 'set', 'include', 'subinclude', 32 'listfile', 'listfile0', 'set', 'include', 'subinclude',
33 'rootfilesin') 33 'rootfilesin')