49 | | if self.parent.firstblock.startswith("%PDF-") or \ |
50 | | self.parent.firstblock.startswith("\033%-12345X%PDF-") or \ |
51 | | ((self.parent.firstblock[:128].find("\033%-12345X") != -1) and (self.parent.firstblock.upper().find("LANGUAGE=PDF") != -1)) or \ |
52 | | (self.parent.firstblock.find("%PDF-") != -1) : |
| 49 | if self.firstblock.startswith("%PDF-") or \ |
| 50 | self.firstblock.startswith("\033%-12345X%PDF-") or \ |
| 51 | ((self.firstblock[:128].find("\033%-12345X") != -1) and (self.firstblock.upper().find("LANGUAGE=PDF") != -1)) or \ |
| 52 | (self.firstblock.find("%PDF-") != -1) : |