configitems: use raw strings for hidden-{command,topic} items
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 04 Feb 2019 09:13:05 -0800
changeset 41538 b5642239fb32
parent 41537 fc09aafd3c36
child 41539 45a4789d3ff2
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
mercurial/configitems.py
--- a/mercurial/configitems.py	Mon Feb 04 09:03:10 2019 -0800
+++ b/mercurial/configitems.py	Mon Feb 04 09:13:05 2019 -0800
@@ -720,11 +720,11 @@
 coreconfigitem('fsmonitor', 'warn_update_file_count',
     default=50000,
 )
-coreconfigitem('help', 'hidden-command\..*',
+coreconfigitem('help', br'hidden-command\..*',
     default=False,
     generic=True,
 )
-coreconfigitem('help', 'hidden-topic\..*',
+coreconfigitem('help', br'hidden-topic\..*',
     default=False,
     generic=True,
 )