Skip to content

Commit 18d39b5

Browse files
committed
refactor: cleaner .pth file
1 parent 04ee0ca commit 18d39b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def make_pth_file() -> None:
9494
code = f.read()
9595

9696
code = re.sub(r"\s*#.*\n", "\n", code)
97-
code = code.replace(" ", " ")
97+
code = code.replace(" ", " ").strip()
9898

9999
# `import sys` is needed because .pth files are executed only if they start
100100
# with `import `.

0 commit comments

Comments
 (0)