9368c97
--- gutenprint-5.2.12/src/cups/cups-genppdupdate.in.python36syntax	
9368c97
+++ gutenprint-5.2.12/src/cups/cups-genppdupdate.in	
9368c97
@@ -287,7 +287,7 @@ def update_ppd (ppd_source_filename):
8a6abe5
     for line in orig_lines:
9368c97
         line.rstrip ()
9368c97
         if line.find ("*StpLocale:") != -1:
9368c97
-            match = re.search ("\*StpLocale:\s*\"(.*)\"$", line)
9368c97
+            match = re.search (r'\*StpLocale:\s*"(.*)"$', line)
9368c97
             if match:
9368c97
                 groups = match.groups ()
9368c97
                 if len (groups) >= 1:
9368c97
@@ -295,26 +295,26 @@ def update_ppd (ppd_source_filename):
9368c97
                     orig_locale = locale
9368c97
                     valid = 1
9368c97
         elif line.startswith ("*LanguageVersion"):
9368c97
-            match = re.search ("^\*LanguageVersion:\s*(.*)$", line)
9368c97
+            match = re.search (r'^\*LanguageVersion:\s*(.*)$', line)
9368c97
             if match:
9368c97
                 groups = match.groups ()
9368c97
                 if len (groups) >= 1:
9368c97
                     lingo = groups[0]
9368c97
         elif line.startswith ("*StpDriverName:"):
9368c97
-            match = re.search ("^\*StpDriverName:\s*\"(.*)\"$", line)
9368c97
+            match = re.search (r'^\*StpDriverName:\s*"(.*)"$', line)
9368c97
             if match:
9368c97
                 groups = match.groups ()
9368c97
                 if len (groups) >= 1:
9368c97
                     driver = groups[0]
9368c97
                     valid = 1
9368c97
         elif line.find ("*%End of ") != -1 and driver == "":
9368c97
-            match = re.search ("^\*%End of\s*(.*).ppd$", line)
9368c97
+            match = re.search (r'^\*%End of\s*(.*).ppd$', line)
9368c97
             if match:
9368c97
                 groups = match.groups ()
9368c97
                 if len (groups) >= 1:
9368c97
                     driver = groups[0]
9368c97
         elif line.startswith ("*StpPPDLocation:"):
9368c97
-            match = re.search ("^\*StpPPDLocation:\s*\"(.*)\"$", line)
9368c97
+            match = re.search (r'^\*StpPPDLocation:\s*"(.*)"$', line)
9368c97
             if match:
9368c97
                 groups = match.groups ()
9368c97
                 if len (groups) >= 1:
9368c97
@@ -436,7 +436,7 @@ def update_ppd (ppd_source_filename):
9368c97
         lines = source_data.rstrip ().split ("\n")
9368c97
         source_data = ""
9368c97
         for line in lines:
9368c97
-            m = re.search ("(\*StpLocale:\s*\")(.*)(\")", line)
9368c97
+            m = re.search (r'(\*StpLocale:\s*")(.*)(")', line)
9368c97
             if m:
9368c97
                 groups = m.groups ()
9368c97
                 line = groups[0] + orig_locale + groups[2]
9368c97
@@ -689,7 +689,7 @@ def get_ppd_data (fh, types, opts, resolutions, defaults, data):
9368c97
             line = line.strip ()
9368c97
 
9368c97
             if (types or opts) and line.startswith ("*OpenUI"):
9368c97
-                m = re.search ("^\*OpenUI\s\*(\w+).*:\s(\w+)",
9368c97
+                m = re.search (r'^\*OpenUI\s\*(\w+).*:\s(\w+)',
9368c97
                                line)
9368c97
                 if m:
9368c97
                     groups = m.groups ()
9368c97
@@ -704,7 +704,7 @@ def get_ppd_data (fh, types, opts, resolutions, defaults, data):
9368c97
 
9368c97
                 optionlist = []
9368c97
             elif opts and line.startswith ("*%s" % cur_opt):
9368c97
-                m = re.search ("^\*%s\s*(\w+)[\/:]" % cur_opt, line)
9368c97
+                m = re.search (r'^\*%s\s*(\w+)[\/:]' % cur_opt, line)
9368c97
                 if m:
9368c97
                     groups = m.groups()
9368c97
                     if len (groups) >= 1:
9368c97
@@ -717,7 +717,7 @@ def get_ppd_data (fh, types, opts, resolutions, defaults, data):
9368c97
                     old = s[2]
9368c97
                     resolution_map[old] = new
9368c97
             elif defaults and line.startswith ("*Default"):
9368c97
-                m = re.search ("^\*(\w+):\s*(\w+)", line)
9368c97
+                m = re.search (r'^\*(\w+):\s*(\w+)', line)
9368c97
                 if m:
9368c97
                     groups = m.groups ()
9368c97
                     key = groups[0]
9368c97
@@ -844,13 +844,13 @@ def find_ppd (gutenprintfilename, drivername, lang, region):
9368c97
     global debug
9368c97
 
9368c97
     key = '^\\*FileVersion:[ 	]*' + file_version
9368c97
-    match = re.search (".*/([^/]+\.[0-9]+\.[0-9]+)(\.sim)?(\.ppd)?(\.gz)?$",
9368c97
+    match = re.search (r'.*/([^/]+\.[0-9]+\.[0-9]+)(\.sim)?(\.ppd)?(\.gz)?$',
9368c97
                        gutenprintfilename)
9368c97
     if not match:
9368c97
         return None
9368c97
 
9368c97
     stored_name = match.groups ()[0]
9368c97
-    if re.search (".*/([^/]*)(\.sim)(\.ppd)?(\.gz)?$", gutenprintfilename):
9368c97
+    if re.search (r'.*/([^/]*)(\.sim)(\.ppd)?(\.gz)?$', gutenprintfilename):
9368c97
         simplified = ".sim"
9368c97
     else:
9368c97
         simplified = ""