examples: Fix invalid escape sequences
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Sun, 10 Sep 2023 23:59:08 +0000 (11:59 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 13 Oct 2023 03:50:31 +0000 (03:50 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
examples/logon/ntlogon/ntlogon.py

index 3912f0c5ea470eb801babe42132eaf4eb9a21fb0..7213012fa80e40d517072610739e3b17ded81e0e 100755 (executable)
@@ -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