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/pdf.py

    r371 r387  
    4545    totiffcommand = 'gs -sDEVICE=tiff24nc -dPARANOIDSAFER -dNOPAUSE -dBATCH -dQUIET -r%(dpi)i -sOutputFile="%(fname)s" -' 
    4646    def isValid(self) :     
    47         """Returns 1 if data is PDF, else 0.""" 
     47        """Returns True if data is PDF, else False.""" 
    4848        if self.firstblock.startswith("%PDF-") or \ 
    4949           self.firstblock.startswith("\033%-12345X%PDF-") or \ 
     
    5151           (self.firstblock.find("%PDF-") != -1) : 
    5252            self.logdebug("DEBUG: Input file is in the PDF format.") 
    53             return 1 
     53            return True 
    5454        else :     
    55             return 0 
     55            return False 
    5656         
    5757    def getJobSize(self) :