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