提交 48e23838 authored 作者: Josh Bleecher Snyder's avatar Josh Bleecher Snyder

Restore double-depth try/finally, for Python 2.4 compatability. Thanks, @delallea.

上级 a59b78ac
......@@ -111,12 +111,13 @@ if not release:
a = open(filename, 'w')
try:
a.write(cnt % {'version': VERSION,
'full_version': FULL_VERSION,
'git_revision': GIT_REVISION,
'isrelease': str(ISRELEASED)})
except Exception, e:
print e
try:
a.write(cnt % {'version': VERSION,
'full_version': FULL_VERSION,
'git_revision': GIT_REVISION,
'isrelease': str(ISRELEASED)})
except Exception, e:
print e
finally:
a.close()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论