We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6fcf90 commit 69d32b9Copy full SHA for 69d32b9
setup.py
@@ -4,14 +4,16 @@
4
5
6
def get_version():
7
- version = open(os.path.join("tcms_api", "version.py")).read()
8
- return (
9
- version.replace(" ", "")
10
- .replace("__version__=", "")
11
- .strip()
12
- .strip("'")
13
- .strip('"')
14
- )
+ with open(os.path.join("tcms_api", "version.py"), "r") as file:
+ version = file.read()
+
+ return (
+ version.replace(" ", "")
+ .replace("__version__=", "")
+ .strip()
+ .strip("'")
15
+ .strip('"')
16
+ )
17
18
19
def get_install_requires(path):
0 commit comments