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

    r375 r387  
    8484         
    8585    def isValid(self) :     
    86         """Returns 1 if data is PCL, else 0.""" 
     86        """Returns True if data is PCL3/4/5, else False.""" 
    8787        if self.firstblock.startswith("\033E\033") or \ 
    8888           (self.firstblock.startswith("\033*rbC") and (not self.lastblock[-3:] == "\f\033@")) or \ 
     
    9292           (self.firstblock.startswith(chr(0xcd)+chr(0xca)) and self.firstblock.find("\033E\033")) : 
    9393            self.logdebug("DEBUG: Input file is in the PCL3/4/5 format.") 
    94             return 1 
     94            return True 
    9595        else :     
    96             return 0 
     96            return False 
    9797         
    9898    def setPageDict(self, pages, number, attribute, value) :