From: Joseph Sutton Date: Sun, 10 Sep 2023 23:59:08 +0000 (+1200) Subject: examples: Fix invalid escape sequences X-Git-Tag: tevent-0.16.0~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=876ee3fb849e12974da58ea08968edf1a4d5c526;p=thirdparty%2Fsamba.git examples: Fix invalid escape sequences Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/examples/logon/ntlogon/ntlogon.py b/examples/logon/ntlogon/ntlogon.py index 3912f0c5ea4..7213012fa80 100755 --- a/examples/logon/ntlogon/ntlogon.py +++ b/examples/logon/ntlogon/ntlogon.py @@ -125,15 +125,15 @@ def buildScript(buf, sections, group, user, ostype, machine, debug, pause): # that section headers contain user defined text. # if s == 'Global': - hdrstring = '\[ *' + s + ' *\]' + hdrstring = r'\[ *' + s + r' *\]' elif s == 'Group': - hdrstring = '\[ *' + s + ' *- *' + group + ' *\]' + hdrstring = r'\[ *' + s + ' *- *' + group + r' *\]' elif s == 'User': - hdrstring = '\[ *' + s + ' *- *' + user + ' *\]' + hdrstring = r'\[ *' + s + ' *- *' + user + r' *\]' elif s == 'OS': - hdrstring = '\[ *' + s + ' *- *' + ostype + ' *\]' + hdrstring = r'\[ *' + s + ' *- *' + ostype + r' *\]' elif s == 'Machine': - hdrstring = '\[ *' + s + ' *- *' + machine + ' *\]' + hdrstring = r'\[ *' + s + ' *- *' + machine + r' *\]' # # See if we have found a section header