Changeset 218 for pkpgcounter

Show
Ignore:
Timestamp:
07/02/05 11:42:23 (19 years ago)
Author:
jerome
Message:

The input file was not always closed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pdlanalyzer/dvi.py

    r216 r218  
    5757            pagecount = unpack(">H", minfile[pos + 27: pos + 29])[0] 
    5858        except IndexError : # EOF ? 
    59             minfile.close() # reached EOF 
     59            pass 
     60        minfile.close() # reached EOF 
    6061        return pagecount 
    6162