@@ -296,7 +296,7 @@ class DarwinImage(symbolication.Image):
296296 except :
297297 dsymForUUIDBinary = ""
298298
299- dwarfdump_uuid_regex = re .compile ("UUID: ([-0-9a-fA-F]+) \(([^\(]+)\) .*" )
299+ dwarfdump_uuid_regex = re .compile (r "UUID: ([-0-9a-fA-F]+) \(([^\(]+)\) .*" )
300300
301301 def __init__ (
302302 self , text_addr_lo , text_addr_hi , identifier , version , uuid , path , verbose
@@ -501,7 +501,7 @@ def find_image_with_identifier(self, identifier):
501501 for image in self .images :
502502 if image .identifier == identifier :
503503 return image
504- regex_text = "^.*\.%s$" % (re .escape (identifier ))
504+ regex_text = r "^.*\.%s$" % (re .escape (identifier ))
505505 regex = re .compile (regex_text )
506506 for image in self .images :
507507 if regex .match (image .identifier ):
@@ -925,7 +925,7 @@ def get(cls):
925925 version = r"(?:" + super ().version + r"\s+)?"
926926 address = r"(0x[0-9a-fA-F]{4,})" # 4 digits or more
927927
928- symbol = """
928+ symbol = r """
929929 (?:
930930 [ ]+
931931 (?P<symbol>.+)
@@ -1095,7 +1095,7 @@ def parse_normal(self, line):
10951095 self .crashlog .process_identifier = line [11 :].strip ()
10961096 elif line .startswith ("Version:" ):
10971097 version_string = line [8 :].strip ()
1098- matched_pair = re .search ("(.+)\((.+)\)" , version_string )
1098+ matched_pair = re .search (r "(.+)\((.+)\)" , version_string )
10991099 if matched_pair :
11001100 self .crashlog .process_version = matched_pair .group (1 )
11011101 self .crashlog .process_compatability_version = matched_pair .group (2 )
0 commit comments