Changeset 522 for pkpgcounter/trunk/pkpgpdls/escp2.py
- Timestamp:
- 11/28/07 11:13:33 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/escp2.py
r520 r522 31 31 def isValid(self) : 32 32 """Returns True if data is ESC/P2, else False.""" 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 128433 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 37 37 self.logdebug("DEBUG: Input file is in the ESC/P2 format.") 38 38 return True