Mercurial > hg
comparison mercurial/configitems.py @ 41538:b5642239fb32
configitems: use raw strings for hidden-{command,topic} items
These strings are regular expressions. The "\." needs to be
string escaped. We use raw strings to avoid doing that and the
SyntaxWarning we'd receive otherwise on Python 3.8.
Differential Revision: https://phab.mercurial-scm.org/D5822
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 04 Feb 2019 09:13:05 -0800 |
parents | 02186c6871ac |
children | 901ebc81ffb3 |
comparison
equal
deleted
inserted
replaced
41537:fc09aafd3c36 | 41538:b5642239fb32 |
---|---|
718 default=True, | 718 default=True, |
719 ) | 719 ) |
720 coreconfigitem('fsmonitor', 'warn_update_file_count', | 720 coreconfigitem('fsmonitor', 'warn_update_file_count', |
721 default=50000, | 721 default=50000, |
722 ) | 722 ) |
723 coreconfigitem('help', 'hidden-command\..*', | 723 coreconfigitem('help', br'hidden-command\..*', |
724 default=False, | 724 default=False, |
725 generic=True, | 725 generic=True, |
726 ) | 726 ) |
727 coreconfigitem('help', 'hidden-topic\..*', | 727 coreconfigitem('help', br'hidden-topic\..*', |
728 default=False, | 728 default=False, |
729 generic=True, | 729 generic=True, |
730 ) | 730 ) |
731 coreconfigitem('hooks', '.*', | 731 coreconfigitem('hooks', '.*', |
732 default=dynamicdefault, | 732 default=dynamicdefault, |