Skip to content

Commit 415a8eb

Browse files
committed
Small clarity improvements in setup.py
1 parent a352404 commit 415a8eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: setup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import os
99
import sys
1010

11-
with open(os.path.join(os.path.dirname(__file__), "VERSION")) as v:
12-
VERSION = v.readline().strip()
11+
with open(os.path.join(os.path.dirname(__file__), "VERSION")) as ver_file:
12+
VERSION = ver_file.readline().strip()
1313

1414
with open("requirements.txt") as reqs_file:
1515
requirements = reqs_file.read().splitlines()
@@ -49,7 +49,7 @@ def _stamp_version(filename: str) -> None:
4949
with open(filename) as f:
5050
for line in f:
5151
if "__version__ =" in line:
52-
line = line.replace("\"git\"", "'%s'" % VERSION)
52+
line = line.replace('"git"', "'%s'" % VERSION)
5353
found = True
5454
out.append(line)
5555
except OSError:

0 commit comments

Comments
 (0)