提交 8caceba6 authored 作者: Brandon T. Willard's avatar Brandon T. Willard

Apply pyupgrade to setup.py

上级 a9205501
...@@ -84,7 +84,7 @@ if version_data["error"] is not None: ...@@ -84,7 +84,7 @@ if version_data["error"] is not None:
# Get the fallback version # Get the fallback version
# We can't import theano.version as it isn't yet installed, so parse it. # We can't import theano.version as it isn't yet installed, so parse it.
fname = os.path.join(os.path.split(__file__)[0], "theano", "version.py") fname = os.path.join(os.path.split(__file__)[0], "theano", "version.py")
with open(fname, "r") as f: with open(fname) as f:
lines = f.readlines() lines = f.readlines()
lines = [l for l in lines if l.startswith("FALLBACK_VERSION")] lines = [l for l in lines if l.startswith("FALLBACK_VERSION")]
assert len(lines) == 1 assert len(lines) == 1
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论