提交 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: ...@@ -105,12 +105,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,
'hg_revision' : HG_REVISION, 'full_version' : FULL_VERSION,
'isrelease': str(ISRELEASED)}) 'hg_revision' : HG_REVISION,
except Exception, e: 'isrelease': str(ISRELEASED)})
print e except Exception, e:
print e
finally: finally:
a.close() a.close()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论