Skip to content

Commit b9b0337

Browse files
EliEli
authored andcommitted
Made re.compile string a raw string.
1 parent 0402ab6 commit b9b0337

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dms_datastore/usgs_lookup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,10 @@ def main():
194194
textfile = open(filepath, "r")
195195

196196
# Scan for variable identifier, name, and unit.
197-
scan_id = re.compile("\# Time-series identifier:\s+(.*)")
198-
scan_var = re.compile("\# Value parameter:\s+(.*)")
199-
scan_unit = re.compile("\# Value units:\s+(.*)")
200-
scan_csv_line = re.compile("\# CSV data starts at line\s+(\d*)")
197+
scan_id = re.compile(r"\# Time-series identifier:\s+(.*)")
198+
scan_var = re.compile(r"\# Value parameter:\s+(.*)")
199+
scan_unit = re.compile(r"\# Value units:\s+(.*)")
200+
scan_csv_line = re.compile(r"\# CSV data starts at line\s+(\d*)")
201201

202202
found_id = []
203203
found_var = []

0 commit comments

Comments
 (0)