Changeset 387 for pkpgcounter/trunk/pkpgpdls/tiff.py
- Timestamp:
- 09/05/06 23:44:49 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/tiff.py
r372 r387 35 35 totiffcommand = "cat >%(fname)s" 36 36 def isValid(self) : 37 """Returns 1 if data is TIFF, else 0."""37 """Returns True if data is TIFF, else False.""" 38 38 littleendian = (chr(0x49)*2) + chr(0x2a) + chr(0) 39 39 bigendian = (chr(0x4d)*2) + chr(0) + chr(0x2a) 40 40 if self.firstblock[:4] in (littleendian, bigendian) : 41 41 self.logdebug("DEBUG: Input file is in the TIFF format.") 42 return 142 return True 43 43 else : 44 return 044 return False 45 45 46 46 def getJobSize(self) :