Changeset 387 for pkpgcounter/trunk/pkpgpdls/pcl345.py
- Timestamp:
- 09/05/06 23:44:49 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/pcl345.py
r375 r387 84 84 85 85 def isValid(self) : 86 """Returns 1 if data is PCL, else 0."""86 """Returns True if data is PCL3/4/5, else False.""" 87 87 if self.firstblock.startswith("\033E\033") or \ 88 88 (self.firstblock.startswith("\033*rbC") and (not self.lastblock[-3:] == "\f\033@")) or \ … … 92 92 (self.firstblock.startswith(chr(0xcd)+chr(0xca)) and self.firstblock.find("\033E\033")) : 93 93 self.logdebug("DEBUG: Input file is in the PCL3/4/5 format.") 94 return 194 return True 95 95 else : 96 return 096 return False 97 97 98 98 def setPageDict(self, pages, number, attribute, value) :