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

setup.py

Lines changed: 3 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy