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

    r491 r520  
    3131    def isValid(self) :         
    3232        """Returns True if data is ESC/P2, else False.""" 
    33         if self.firstblock.startswith("\033@") or \ 
    34            self.firstblock.startswith("\033*") or \ 
    35            self.firstblock.startswith("\n\033@") or \ 
    36            self.firstblock.startswith("\0\0\0\033\1@EJL") : # ESC/P Raster ??? Seen on Stylus Photo 1284 
     33        if self.parent.firstblock.startswith("\033@") or \ 
     34           self.parent.firstblock.startswith("\033*") or \ 
     35           self.parent.firstblock.startswith("\n\033@") or \ 
     36           self.parent.firstblock.startswith("\0\0\0\033\1@EJL") : # ESC/P Raster ??? Seen on Stylus Photo 1284 
    3737            self.logdebug("DEBUG: Input file is in the ESC/P2 format.") 
    3838            return True