Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit415a8eb

Browse files
committed
Small clarity improvements in setup.py
1 parenta352404 commit415a8eb

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
importos
99
importsys
1010

11-
withopen(os.path.join(os.path.dirname(__file__),"VERSION"))asv:
12-
VERSION=v.readline().strip()
11+
withopen(os.path.join(os.path.dirname(__file__),"VERSION"))asver_file:
12+
VERSION=ver_file.readline().strip()
1313

1414
withopen("requirements.txt")asreqs_file:
1515
requirements=reqs_file.read().splitlines()
@@ -49,7 +49,7 @@ def _stamp_version(filename: str) -> None:
4949
withopen(filename)asf:
5050
forlineinf:
5151
if"__version__ ="inline:
52-
line=line.replace("\"git\"","'%s'"%VERSION)
52+
line=line.replace('"git"',"'%s'"%VERSION)
5353
found=True
5454
out.append(line)
5555
exceptOSError:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp