# HG changeset patch # User Gregory Szorc # Date 1549300385 28800 # Node ID b5642239fb320072330c0fad7d232d718c6023b6 # Parent fc09aafd3c36cf55fbe9de1102b61afc0e4657ad 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 diff -r fc09aafd3c36 -r b5642239fb32 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, )