Show
Ignore:
Timestamp:
04/04/05 14:18:36 (20 years ago)
Author:
jerome
Message:

More file splits

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pdlanalyzer/postscript.py

    r196 r200  
    2525import popen2 
    2626 
    27 from pdlanalyzer.pdlparser import PDLParser, PDLParserError 
     27from pdlanalyzer import pdlparser 
    2828 
    29 class PostScriptParser(PDLParser) : 
     29class PostScriptParser(pdlparser.PDLParser) : 
    3030    """A parser for PostScript documents.""" 
    3131    def throughGhostScript(self) : 
     
    4444            child.tochild.close()     
    4545        except (IOError, OSError), msg :     
    46             raise PDLParserError, "Problem during analysis of Binary PostScript document : %s" % msg 
     46            raise pdlparser.PDLParserError, "Problem during analysis of Binary PostScript document : %s" % msg 
    4747             
    4848        pagecount = 0 
     
    5050            pagecount = int(child.fromchild.readline().strip()) 
    5151        except (IOError, OSError, AttributeError, ValueError), msg : 
    52             raise PDLParserError, "Problem during analysis of Binary PostScript document : %s" % msg 
     52            raise pdlparser.PDLParserError, "Problem during analysis of Binary PostScript document : %s" % msg 
    5353        child.fromchild.close() 
    5454         
     
    5656            child.wait() 
    5757        except OSError, msg :     
    58             raise PDLParserError, "Problem during analysis of Binary PostScript document : %s" % msg 
     58            raise pdlparser.PDLParserError, "Problem during analysis of Binary PostScript document : %s" % msg 
    5959        return pagecount * self.copies 
    6060         
     
    113113            parser = PostScriptParser(infile, debug=1) 
    114114            totalsize += parser.getJobSize() 
    115         except PDLParserError, msg :     
     115        except pdlparser.PDLParserError, msg :     
    116116            sys.stderr.write("ERROR: %s\n" % msg) 
    117117            sys.stderr.flush()