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

    r384 r387  
    3636    totiffcommand = 'gs -sDEVICE=tiff24nc -dPARANOIDSAFER -dNOPAUSE -dBATCH -dQUIET -r%(dpi)i -sOutputFile="%(fname)s" -' 
    3737    def isValid(self) :     
    38         """Returns 1 if data is PostScript, else 0.""" 
     38        """Returns True if data is PostScript, else False.""" 
    3939        if self.firstblock.startswith("%!") or \ 
    4040           self.firstblock.startswith("\004%!") or \ 
     
    4646              (self.firstblock.find("%!PS-Adobe") != -1) : 
    4747            self.logdebug("DEBUG: Input file is in the PostScript format.") 
    48             return 1 
     48            return True 
    4949        else :     
    50             return 0 
     50            return False 
    5151         
    5252    def throughGhostScript(self) :