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