Show
Ignore:
Timestamp:
07/20/06 15:33:11 (18 years ago)
Author:
jerome
Message:

Fixed very important bug in file type autodetection code.

Files:
1 modified

Legend:

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

    r339 r343  
    8686           self.firstblock.startswith("\033%8\033") or \ 
    8787           (self.firstblock.find("\033%-12345X") != -1) or \ 
    88            self.firstblock.find("@PJL ENTER LANGUAGE=PCL\012\015\033") or \ 
     88           (self.firstblock.find("@PJL ENTER LANGUAGE=PCL\012\015\033") != -1) or \ 
    8989           (self.firstblock.startswith(chr(0xcd)+chr(0xca)) and self.firstblock.find("\033E\033")) : 
    9090            self.logdebug("DEBUG: Input file is in the PCL3/4/5 format.")