diff 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
line wrap: on
line diff
--- 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,
 )