Show
Ignore:
Timestamp:
11/28/07 00:52:52 (17 years ago)
Author:
jerome
Message:

Code cleaning.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pkpgpdls/spl1.py

    r493 r520  
    3737    def isValid(self) :     
    3838        """Returns True if data is SPL1, else False.""" 
    39         if ((self.firstblock[:128].find("\033%-12345X") != -1) and \ 
    40             (self.firstblock.find("$PJL ") != -1) and \ 
    41              ((self.firstblock.find("LANGUAGE=SMART") != -1) or \ 
    42               (self.firstblock.find("LANGUAGE = SMART") != -1))) : 
     39        if ((self.parent.firstblock[:128].find("\033%-12345X") != -1) and \ 
     40            (self.parent.firstblock.find("$PJL ") != -1) and \ 
     41             ((self.parent.firstblock.find("LANGUAGE=SMART") != -1) or \ 
     42              (self.parent.firstblock.find("LANGUAGE = SMART") != -1))) : 
    4343            self.logdebug("DEBUG: Input file is in the SPL1 format.") 
    4444            return True