| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a352404 commit 415a8eb
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,8 +8,8 @@ | |||
| 8 | 8 | import os | |
| 9 | 9 | import sys | |
| 10 | 10 | ||
| 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() | ||
| 13 | 13 | ||
| 14 | 14 | with open("requirements.txt") as reqs_file: | |
| 15 | 15 | requirements = reqs_file.read().splitlines() | |
@@ -49,7 +49,7 @@ def _stamp_version(filename: str) -> None: | |||
| 49 | 49 | with open(filename) as f: | |
| 50 | 50 | for line in f: | |
| 51 | 51 | if "__version__ =" in line: | |
| 52 | - line = line.replace("\"git\"", "'%s'" % VERSION) | ||
| 52 | + line = line.replace('"git"', "'%s'" % VERSION) | ||
| 53 | 53 | found = True | |
| 54 | 54 | out.append(line) | |
| 55 | 55 | except OSError: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments