Skip to content

Commit

Permalink
regex string -> raw string
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienT01 committed Oct 24, 2024
1 parent 0468d8e commit 7c05b98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rlberry/utils/torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def get_memory(pid=None):
command, stdout=PIPE, stderr=PIPE, universal_newlines=True, shell=True
).stdout
m = re.findall(
r"\| *[0-9] *" + str(pid) + " *C *.*python.*? +([0-9]+).*\|",
r"\| *[0-9] *" + str(pid) + r" *C *.*python.*? +([0-9]+).*\|",
result,
re.MULTILINE,
)
Expand Down

0 comments on commit 7c05b98

Please sign in to comment.