comparison setup.py @ 42065:fecbd93a5f08

setup: use raw string for regular expression Otherwise Python 3.8 complains about the backslash. Differential Revision: https://phab.mercurial-scm.org/D6202
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 04 Apr 2019 18:01:48 -0700
parents 399ed3e86a49
children 59b1bdf85b1a
comparison
equal deleted inserted replaced
42064:0e9066db5e44 42065:fecbd93a5f08
794 794
795 normalizecrlf('doc/%s.html' % root) 795 normalizecrlf('doc/%s.html' % root)
796 796
797 # This logic is duplicated in doc/Makefile. 797 # This logic is duplicated in doc/Makefile.
798 sources = {f for f in os.listdir('mercurial/help') 798 sources = {f for f in os.listdir('mercurial/help')
799 if re.search('[0-9]\.txt$', f)} 799 if re.search(r'[0-9]\.txt$', f)}
800 800
801 # common.txt is a one-off. 801 # common.txt is a one-off.
802 gentxt('common') 802 gentxt('common')
803 803
804 for source in sorted(sources): 804 for source in sorted(sources):