Changeset 555 for pkpgcounter/trunk/pkpgpdls/pnmascii.py
- Timestamp:
- 12/09/07 15:26:15 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/pnmascii.py
r554 r555 28 28 """A parser for PNM (ascii) documents.""" 29 29 openmode = "rU" 30 format = "PNM (ascii)" 30 31 def isValid(self) : 31 32 """Returns True if data is ASCII PNM, else False.""" 32 33 if self.firstblock.split()[0] in ("P1", "P2", "P3") : 33 self.logdebug("DEBUG: Input file seems to be in the PNM (ascii) format.")34 34 self.marker = self.firstblock[:2] 35 35 return True