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

    r386 r387  
    7373             
    7474    def isValid(self) :     
    75         """Returns 1 if data is PCLXL aka PCL6, else 0.""" 
     75        """Returns True if data is QPDL aka SPL2, else False.""" 
    7676        if ((self.firstblock[:128].find("\033%-12345X") != -1) and \ 
    7777             ((self.firstblock.find("LANGUAGE=QPDL") != -1) or \ 
    7878              (self.firstblock.find("LANGUAGE = QPDL") != -1))) : 
    7979            self.logdebug("DEBUG: Input file is in the QPDL (aka SPL2) format.") 
    80             return 1 
     80            return True 
    8181        else :     
    82             return 0 
     82            return False 
    8383             
    8484    def beginPage(self, nextpos) :