fix python warning about escape sequence
@@ -21,7 +21,8 @@ def processLibertyFile(input_file, output_file, dont_use, quiet=False):
f.close()
# Pattern to match a cell header
- pattern = r"(^\s*cell\s*\(\s*([\"]*"+"[\"]*|[\"]*".join(patternList)+"[\"]*)\)\s*\{)"
+ cell_pattern = r"[\"]*|[\"]*"
+ pattern = r"(^\s*cell\s*\(\s*([\"]*"+cell_pattern.join(patternList)+r"[\"]*)\)\s*\{)"
# print(pattern)
replace = r"\1\n dont_use : true;"
