Changeset 493 for pkpgcounter/trunk/pkpgpdls/spl1.py
- Timestamp:
- 11/21/07 16:41:06 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/spl1.py
r491 r493 100 100 self.escapedStuff = {} # For escaped datas, mostly PJL commands 101 101 self.bigEndian() 102 102 codesop = chr(0x06) + chr(0x00) + chr(0x00) + chr(0x80) + chr(0x13) + chr(0x40) 103 103 self.isbitmap = False 104 104 pos = 0 … … 114 114 offset = unpack(self.unpackLong, minfile[pos:pos+4])[0] 115 115 sequencenum = unpack(self.unpackShort, minfile[pos+4:pos+6])[0] 116 codesop = " ".join([ "%02x" % ord(v) for v in minfile[pos+6:pos+12]]) 117 if codesop != "06 00 00 80 13 40" : 116 if minfile[pos+6:pos+12] != codesop : 118 117 raise pdlparser.PDLParserError, "Unfortunately SPL1 is incompletely recognized. Parsing aborted. Please report the problem to %s" % version.__authoremail__ 119 118 if not sequencenum :