39 | | if self.firstblock.startswith("%!") or \ |
40 | | self.firstblock.startswith("\004%!") or \ |
41 | | self.firstblock.startswith("\033%-12345X%!PS") or \ |
42 | | ((self.firstblock[:128].find("\033%-12345X") != -1) and \ |
43 | | ((self.firstblock.find("LANGUAGE=POSTSCRIPT") != -1) or \ |
44 | | (self.firstblock.find("LANGUAGE = POSTSCRIPT") != -1) or \ |
45 | | (self.firstblock.find("LANGUAGE = Postscript") != -1))) or \ |
46 | | (self.firstblock.find("%!PS-Adobe") != -1) : |
| 39 | if self.parent.firstblock.startswith("%!") or \ |
| 40 | self.parent.firstblock.startswith("\004%!") or \ |
| 41 | self.parent.firstblock.startswith("\033%-12345X%!PS") or \ |
| 42 | ((self.parent.firstblock[:128].find("\033%-12345X") != -1) and \ |
| 43 | ((self.parent.firstblock.find("LANGUAGE=POSTSCRIPT") != -1) or \ |
| 44 | (self.parent.firstblock.find("LANGUAGE = POSTSCRIPT") != -1) or \ |
| 45 | (self.parent.firstblock.find("LANGUAGE = Postscript") != -1))) or \ |
| 46 | (self.parent.firstblock.find("%!PS-Adobe") != -1) : |