Skip to content

Commit 3357c1a

Browse files
Bordacarmocca
andauthored
\s
Co-authored-by: Carlos Mocholí <[email protected]>
1 parent 342aa11 commit 3357c1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

requirements/adjust_versions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def main(path_req: str, torch_version: Optional[str] = None) -> None:
4141
with open(path_req, "r") as fp:
4242
req = fp.read()
4343
# remove comments
44-
req = re.sub(rf"\W*#.*{os.linesep}", os.linesep, req)
44+
req = re.sub(rf"\s*#.*{os.linesep}", os.linesep, req)
4545

4646
latest = find_latest(torch_version)
4747
for lib, version in latest.items():

0 commit comments

Comments
 (0)