0c57d76dbbaae46ca891f31beb014c135c2900aa
jnavarr5
  Fri Aug 22 15:10:14 2025 -0700
Updating the syntax for the regular expression. Python3 was complaining, refs #35612

diff --git python/lib/ucscGb/qa/encode/tableCheck.py python/lib/ucscGb/qa/encode/tableCheck.py
index 8ec14ff50ec..e4c3bb0d38c 100644
--- python/lib/ucscGb/qa/encode/tableCheck.py
+++ python/lib/ucscGb/qa/encode/tableCheck.py
@@ -170,33 +170,33 @@
         for i in bad:
             output.append(i)
         output.append("")
     else:
         output.append("No malformed table names")
         output.append("")
     return (output, bad)
 
 def checkLabels(trackDb):
     """ Check if long and short labels are too long, are duplicated or are auto-generated."""
     f = open(trackDb, "r")
     lines = f.readlines()
     seenlabel = dict()
     output = []
     toolong = list()
-    p1 = re.compile('^\s*longLabel\s+(.*)$')
-    p2 = re.compile('^\s*shortLabel\s+(.*)$')
-    p3 = re.compile('^\s*#.*$')
+    p1 = re.compile(r'^\s*longLabel\s+(.*)$')
+    p2 = re.compile(r'^\s*shortLabel\s+(.*)$')
+    p3 = re.compile(r'^\s*#.*$')
     for i in lines:
         m1 = p1.match(i)
         m2 = p2.match(i)
         m3 = p3.match(i)
         if m3:
             continue
         if m1:
             if seenlabel.has_key(m1.group(1)):
                 seenlabel[m1.group(1)] = seenlabel[m1.group(1)] + 1
             else:
                 seenlabel[m1.group(1)] = 1
             if re.search('autogenerated', m1.group(1)):
                 toolong.append([m1.group(1), -1])
                 output.append("longLabel '%s' is still autogenerated, please tell the wrangler to fix this" % m1.group(1))
             if len(m1.group(1)) > 80: