94 | | if self.firstblock.startswith("\033E\033") or \ |
95 | | (self.firstblock.startswith("\033*rbC") and (not self.lastblock[-3:] == "\f\033@")) or \ |
96 | | self.firstblock.startswith("\033*rB\033") or \ |
97 | | self.firstblock.startswith("\033%8\033") or \ |
98 | | (self.firstblock.find("\033%-12345X") != -1) or \ |
99 | | (self.firstblock.find("@PJL ENTER LANGUAGE=PCL\012\015\033") != -1) or \ |
100 | | (self.firstblock.startswith(chr(0xcd)+chr(0xca)) and (self.firstblock.find("\033E\033") != -1)) : |
| 94 | if self.parent.firstblock.startswith("\033E\033") or \ |
| 95 | (self.parent.firstblock.startswith("\033*rbC") and (not self.parent.lastblock[-3:] == "\f\033@")) or \ |
| 96 | self.parent.firstblock.startswith("\033*rB\033") or \ |
| 97 | self.parent.firstblock.startswith("\033%8\033") or \ |
| 98 | (self.parent.firstblock.find("\033%-12345X") != -1) or \ |
| 99 | (self.parent.firstblock.find("@PJL ENTER LANGUAGE=PCL\012\015\033") != -1) or \ |
| 100 | (self.parent.firstblock.startswith(chr(0xcd)+chr(0xca)) and (self.parent.firstblock.find("\033E\033") != -1)) : |