Changeset 1743 for pykota/trunk/pykota/pdlanalyzer.py
- Timestamp:
- 09/24/04 23:19:48 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/pdlanalyzer.py
r1702 r1743 22 22 # 23 23 # $Log$ 24 # Revision 1.42 2004/09/24 21:19:48 jalet 25 # Did a pass of PyChecker 26 # 24 27 # Revision 1.41 2004/09/04 14:18:55 jalet 25 28 # Support for more laserjet models added. … … 194 197 child.tochild.close() 195 198 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 197 200 198 201 pagecount = 0 199 202 try : 200 203 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 203 206 child.fromchild.close() 204 207 205 208 try : 206 retcode =child.wait()209 child.wait() 207 210 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 209 212 return pagecount * self.copies 210 213 … … 335 338 # "*b" : "VW", # treated specially because it occurs very often 336 339 } 337 pagecount = resets = ejects = backsides = startgfx = endgfx = strangegfx =0340 pagecount = resets = ejects = backsides = startgfx = endgfx = 0 338 341 starb = ispcl3 = 0 339 342 tag = None