From 876ee3fb849e12974da58ea08968edf1a4d5c526 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Mon, 11 Sep 2023 11:59:08 +1200 Subject: [PATCH] examples: Fix invalid escape sequences Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- examples/logon/ntlogon/ntlogon.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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