[pywin32-checkins] pywin32/com/win32com/client gencache.py,1.24,1.25
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <mha...@us...> - 2003-11-02 11:43:32
|
Update of /cvsroot/pywin32/pywin32/com/win32com/client In directory sc8-pr-cvs1:/tmp/cvs-serv17362 Modified Files: gencache.py Log Message: zipfile yields KeyError rather than IOError when 'file' not found. Index: gencache.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/gencache.py,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** gencache.py 2 Nov 2003 10:08:20 -0000 1.24 --- gencache.py 2 Nov 2003 11:43:28 -0000 1.25 *************** *** 81,85 **** f = cStringIO.StringIO(zf.read(zip_path)) zf.close() ! except IOError: # Our gencache is in a .zip file (and almost certainly readonly) # but no dicts file. That actually needn't be fatal for a frozen --- 81,85 ---- f = cStringIO.StringIO(zf.read(zip_path)) zf.close() ! except KeyError: # Our gencache is in a .zip file (and almost certainly readonly) # but no dicts file. That actually needn't be fatal for a frozen |