Show
Ignore:
Timestamp:
12/09/07 15:26:15 (17 years ago)
Author:
jerome
Message:

Each parser now has a 'format' attribute containing its short name.

Files:
1 modified

Legend:

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

    r554 r555  
    2828    """A parser for PNM (ascii) documents.""" 
    2929    openmode = "rU"                  
     30    format = "PNM (ascii)" 
    3031    def isValid(self) :     
    3132        """Returns True if data is ASCII PNM, else False.""" 
    3233        if self.firstblock.split()[0] in ("P1", "P2", "P3") : 
    33             self.logdebug("DEBUG: Input file seems to be in the PNM (ascii) format.") 
    3434            self.marker = self.firstblock[:2] 
    3535            return True