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 52a2fd0 commit bece971Copy full SHA for bece971
setup.py
@@ -142,7 +142,7 @@ def ext_math(extName):
142
# http://stackoverflow.com/questions/2058802/how-can-i-get-the-version-defined-in-setup-py-setuptools-in-my-package
143
#
144
import ast
145
-with file('wlsqm/__init__.py') as f:
+with open('wlsqm/__init__.py', 'r') as f:
146
for line in f:
147
if line.startswith('__version__'):
148
version = ast.parse(line).body[0].value.s
0 commit comments