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

    r373 r387  
    3535    totiffcommand = 'cat >%(fname)s && dvips -q -o - %(fname)s | gs -sDEVICE=tiff24nc -dPARANOIDSAFER -dNOPAUSE -dBATCH -dQUIET -r%(dpi)i -sOutputFile="%(fname)s" -' 
    3636    def isValid(self) :         
    37         """Returns 1 if data is DVI, else 0.""" 
     37        """Returns True if data is DVI, else False.""" 
    3838        try : 
    3939            if (ord(self.firstblock[0]) == 0xf7) and (ord(self.lastblock[-1]) == 0xdf) : 
    4040                self.logdebug("DEBUG: Input file is in the DVI format.") 
    41                 return 1 
     41                return True 
    4242            else :     
    43                 return 0 
     43                return False 
    4444        except IndexError :           
    45             return 0 
     45            return False 
    4646             
    4747    def getJobSize(self) :