Changeset 410 for pkpgcounter/trunk/pkpgpdls/spl1.py
- Timestamp:
- 09/13/06 11:40:37 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/spl1.py
r409 r410 31 31 import pdlparser 32 32 import pjl 33 import version 33 34 34 35 ESCAPECHARS = (chr(0x1b), chr(0x24)) … … 112 113 else : 113 114 if not self.isbitmap : 114 raise pdlparser.PDLParserError, "Unfortunately this file format is incompletely recognized. Parsing aborted."115 raise pdlparser.PDLParserError, "Unfortunately SPL1 is incompletely recognized. Parsing aborted. Please report the problem to %s" % version.__authoremail__ 115 116 offset = unpack(self.unpackLong, minfile[pos:pos+4])[0] 116 117 sequencenum = unpack(self.unpackShort, minfile[pos+4:pos+6])[0] 117 118 codesop = " ".join([ "%02x" % ord(v) for v in minfile[pos+6:pos+12]]) 118 119 if codesop != "06 00 00 80 13 40" : 119 raise pdlparser.PDLParserError, "Unfortunately this file format is incompletely recognized. Parsing aborted." 120 self.logdebug("%08x ==> %04x ==> %s" % (pos, sequencenum, codesop)) 120 raise pdlparser.PDLParserError, "Unfortunately SPL1 is incompletely recognized. Parsing aborted. Please report the problem to %s" % version.__authoremail__ 121 121 if not sequencenum : 122 122 self.pagecount += 1