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

    r385 r387  
    3434    """A parser for ZjStream documents.""" 
    3535    def isValid(self) :     
    36         """Returns 1 if data is ZjStream, else 0.""" 
     36        """Returns True if data is ZjStream, else False.""" 
    3737        if self.firstblock[:4] == "ZJZJ" : 
    3838            self.logdebug("DEBUG: Input file is in the Zenographics ZjStream (little endian) format.") 
    3939            self.littleEndian() 
    40             return 1 
     40            return True 
    4141        elif self.firstblock[:4] == "JZJZ" :     
    4242            self.logdebug("DEBUG: Input file is in the Zenographics ZjStream (big endian) format.") 
    4343            self.bigEndian() 
    44             return 1 
     44            return True 
    4545        else :     
    46             return 0 
     46            return False 
    4747         
    4848    def littleEndian(self) :