Show
Ignore:
Timestamp:
09/05/06 23:44:49 (18 years ago)
Author:
jerome
Message:

Code cleanups.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pkpgpdls/tiff.py

    r372 r387  
    3535    totiffcommand = "cat >%(fname)s" 
    3636    def isValid(self) :         
    37         """Returns 1 if data is TIFF, else 0.""" 
     37        """Returns True if data is TIFF, else False.""" 
    3838        littleendian = (chr(0x49)*2) + chr(0x2a) + chr(0) 
    3939        bigendian = (chr(0x4d)*2) + chr(0) + chr(0x2a) 
    4040        if self.firstblock[:4] in (littleendian, bigendian) : 
    4141            self.logdebug("DEBUG: Input file is in the TIFF format.") 
    42             return 1 
     42            return True 
    4343        else :     
    44             return 0 
     44            return False 
    4545     
    4646    def getJobSize(self) :