Changeset 427 for pkpgcounter
- Timestamp:
- 10/17/06 09:21:54 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/analyzer.py
r416 r427 83 83 try : 84 84 pdlhandler = self.detectPDLHandler() 85 tiffname = self.convertToTiffMultiPage24NC(pdlhandler)86 result = inkcoverage.getInkCoverage(tiffname, cspace)87 85 try : 88 os.remove(tiffname) 89 except OSError : 90 sys.stderr.write("Problem when trying to remove temporary file %s\n" % tiffname) 86 tiffname = self.convertToTiffMultiPage24NC(pdlhandler) 87 result = inkcoverage.getInkCoverage(tiffname, cspace) 88 finally : 89 try : 90 os.remove(tiffname) 91 except OSError : 92 sys.stderr.write("Problem when trying to remove temporary file %s\n" % tiffname) 91 93 except pdlparser.PDLParserError, msg : 92 94 raise pdlparser.PDLParserError, "Unknown file format for %s (%s)" % (self.filename, msg)