@@ -296,7 +296,7 @@ class DarwinImage(symbolication.Image):
296
296
except :
297
297
dsymForUUIDBinary = ""
298
298
299
- dwarfdump_uuid_regex = re .compile ("UUID: ([-0-9a-fA-F]+) \(([^\(]+)\) .*" )
299
+ dwarfdump_uuid_regex = re .compile (r "UUID: ([-0-9a-fA-F]+) \(([^\(]+)\) .*" )
300
300
301
301
def __init__ (
302
302
self , text_addr_lo , text_addr_hi , identifier , version , uuid , path , verbose
@@ -501,7 +501,7 @@ def find_image_with_identifier(self, identifier):
501
501
for image in self .images :
502
502
if image .identifier == identifier :
503
503
return image
504
- regex_text = "^.*\.%s$" % (re .escape (identifier ))
504
+ regex_text = r "^.*\.%s$" % (re .escape (identifier ))
505
505
regex = re .compile (regex_text )
506
506
for image in self .images :
507
507
if regex .match (image .identifier ):
@@ -925,7 +925,7 @@ def get(cls):
925
925
version = r"(?:" + super ().version + r"\s+)?"
926
926
address = r"(0x[0-9a-fA-F]{4,})" # 4 digits or more
927
927
928
- symbol = """
928
+ symbol = r """
929
929
(?:
930
930
[ ]+
931
931
(?P<symbol>.+)
@@ -1095,7 +1095,7 @@ def parse_normal(self, line):
1095
1095
self .crashlog .process_identifier = line [11 :].strip ()
1096
1096
elif line .startswith ("Version:" ):
1097
1097
version_string = line [8 :].strip ()
1098
- matched_pair = re .search ("(.+)\((.+)\)" , version_string )
1098
+ matched_pair = re .search (r "(.+)\((.+)\)" , version_string )
1099
1099
if matched_pair :
1100
1100
self .crashlog .process_version = matched_pair .group (1 )
1101
1101
self .crashlog .process_compatability_version = matched_pair .group (2 )
0 commit comments