Changeset 387 for pkpgcounter/trunk/pkpgpdls/pclxl.py
- Timestamp:
- 09/05/06 23:44:49 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/pclxl.py
r375 r387 81 81 82 82 def isValid(self) : 83 """Returns 1 if data is PCLXL aka PCL6, else 0."""83 """Returns True if data is PCLXL aka PCL6, else False.""" 84 84 if ((self.firstblock[:128].find("\033%-12345X") != -1) and \ 85 85 (self.firstblock.find(" HP-PCL XL;") != -1) and \ … … 87 87 (self.firstblock.find("LANGUAGE = PCLXL") != -1))) : 88 88 self.logdebug("DEBUG: Input file is in the PCLXL (aka PCL6) format.") 89 return 189 return True 90 90 else : 91 return 091 return False 92 92 93 93 def beginPage(self, nextpos) :