提交 dc5d7b44 编写于 作者: P Philipp Kern

wrap try..except..finally the python 2.4 way

2008-09-07  Philipp Kern  <pkern@debian.org>

        * daklib/utils.py (check_hash): try..except..finally only
        works on python >=2.5.
Signed-off-by: NPhilipp Kern <pkern@debian.org>
上级 3d51abd3
2008-09-07 Philipp Kern <pkern@debian.org>
* daklib/utils.py (check_hash): try..except..finally only
works on python >=2.5.
2008-09-07 Philipp Kern <pkern@debian.org> 2008-09-07 Philipp Kern <pkern@debian.org>
* daklib/utils.py (check_hash): change the comment and warn * daklib/utils.py (check_hash): change the comment and warn
......
...@@ -251,6 +251,7 @@ def check_hash(where, files, hashname, hashfunc): ...@@ -251,6 +251,7 @@ def check_hash(where, files, hashname, hashfunc):
rejmsg = [] rejmsg = []
for f in files.keys(): for f in files.keys():
file_handle = None file_handle = None
try:
try: try:
file_handle = open_file(f) file_handle = open_file(f)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册