提交 daede851 authored 作者: chandiar's avatar chandiar

modified the try except finally block to make it compatible with python2.4

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