Show
Ignore:
Timestamp:
09/24/04 23:19:48 (20 years ago)
Author:
jalet
Message:

Did a pass of PyChecker?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/pdlanalyzer.py

    r1702 r1743  
    2222# 
    2323# $Log$ 
     24# Revision 1.42  2004/09/24 21:19:48  jalet 
     25# Did a pass of PyChecker 
     26# 
    2427# Revision 1.41  2004/09/04 14:18:55  jalet 
    2528# Support for more laserjet models added. 
     
    194197            child.tochild.close()     
    195198        except (IOError, OSError), msg :     
    196             raise PDLAnalyzerError, "Problem during analysis of Binary PostScript document." 
     199            raise PDLAnalyzerError, "Problem during analysis of Binary PostScript document : %s" % msg 
    197200             
    198201        pagecount = 0 
    199202        try : 
    200203            pagecount = int(child.fromchild.readline().strip()) 
    201         except (IOError, OSError, AttributeError, ValueError) : 
    202             raise PDLAnalyzerError, "Problem during analysis of Binary PostScript document." 
     204        except (IOError, OSError, AttributeError, ValueError), msg : 
     205            raise PDLAnalyzerError, "Problem during analysis of Binary PostScript document : %s" % msg 
    203206        child.fromchild.close() 
    204207         
    205208        try : 
    206             retcode = child.wait() 
     209            child.wait() 
    207210        except OSError, msg :     
    208             raise PDLAnalyzerError, "Problem during analysis of Binary PostScript document." 
     211            raise PDLAnalyzerError, "Problem during analysis of Binary PostScript document : %s" % msg 
    209212        return pagecount * self.copies 
    210213         
     
    335338                     # "*b" : "VW", # treated specially because it occurs very often 
    336339                   }   
    337         pagecount = resets = ejects = backsides = startgfx = endgfx = strangegfx = 0 
     340        pagecount = resets = ejects = backsides = startgfx = endgfx = 0 
    338341        starb = ispcl3 = 0 
    339342        tag = None