Commit 5454bb6e authored by Ievgen Vovk's avatar Ievgen Vovk
Browse files

Made regexps raw strings - to comply with Python3 strings interpretation as Unicode.

parent a37a21bb
......@@ -140,7 +140,7 @@ class MAGICEventSource(EventSource):
A run number of the file.
"""
mask = ".*\d+_M\d+_(\d+)\.\d+_.*"
mask = r".*\d+_M\d+_(\d+)\.\d+_.*"
parsed_info = re.findall(mask, file_name)
try:
......@@ -603,7 +603,7 @@ class MarsDataRun:
A run number of the file.
"""
mask = ".*\d+_M\d+_(\d+)\.\d+_.*"
mask = r".*\d+_M\d+_(\d+)\.\d+_.*"
parsed_info = re.findall(mask, file_name)
run_number = int(parsed_info[0])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment