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

    r375 r387  
    8181             
    8282    def isValid(self) :     
    83         """Returns 1 if data is PCLXL aka PCL6, else 0.""" 
     83        """Returns True if data is PCLXL aka PCL6, else False.""" 
    8484        if ((self.firstblock[:128].find("\033%-12345X") != -1) and \ 
    8585             (self.firstblock.find(" HP-PCL XL;") != -1) and \ 
     
    8787              (self.firstblock.find("LANGUAGE = PCLXL") != -1))) : 
    8888            self.logdebug("DEBUG: Input file is in the PCLXL (aka PCL6) format.") 
    89             return 1 
     89            return True 
    9090        else :     
    91             return 0 
     91            return False 
    9292             
    9393    def beginPage(self, nextpos) :