Changeset 354

Show
Ignore:
Timestamp:
08/14/06 00:55:38 (16 years ago)
Author:
jerome
Message:

Cleaned up with pylint.

Files:
1 modified

Legend:

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

    r303 r354  
    2121# $Id$ 
    2222# 
     23 
     24"""This modules implements a page counter for TIFF documents.""" 
    2325 
    2426import sys 
     
    5860            integerbyteorder = "<I" 
    5961            shortbyteorder = "<H" 
    60         else :     
     62        elif minfile[:4] == bigendian : 
    6163            integerbyteorder = ">I" 
    6264            shortbyteorder = ">H" 
     65        else :     
     66            raise pdlparser.PDLParserError, "Unknown file endianness." 
    6367        pos = 4     
    6468        try :