Changeset 200 for pkpgcounter/trunk/pdlanalyzer/escp2.py
- Timestamp:
- 04/04/05 14:18:36 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pdlanalyzer/escp2.py
r196 r200 24 24 import sys 25 25 26 from pdlanalyzer .pdlparser import PDLParser, PDLParserError26 from pdlanalyzer import pdlparser 27 27 28 class ESCP2Parser( PDLParser) :28 class ESCP2Parser(pdlparser.PDLParser) : 29 29 """A parser for ESC/P2 documents.""" 30 30 def getJobSize(self) : … … 78 78 parser = ESCP2Parser(infile, debug=1) 79 79 totalsize += parser.getJobSize() 80 except PDLParserError, msg :80 except pdlparser.PDLParserError, msg : 81 81 sys.stderr.write("ERROR: %s\n" % msg) 82 82 sys.stderr.flush()