Changeset 3256 for pykota/trunk

Show
Ignore:
Timestamp:
11/20/07 00:01:06 (17 years ago)
Author:
jerome
Message:

No need to reopen the file another time, it's already done in
pkpgcounter.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/accounters/software.py

    r3252 r3256  
    5555                self.filter.printInfo("Precomputed job size will be forced to 0 pages.", "error") 
    5656            else :      
    57                 infile = open(self.filter.DataFile, "rb") 
    5857                try : 
    59                     parser = analyzer.PDLAnalyzer(infile) 
     58                    parser = analyzer.PDLAnalyzer(self.filter.DataFile) 
    6059                    jobsize = parser.getJobSize() 
    6160                except pdlparser.PDLParserError, msg :     
     
    7170                            # must generate the correct number of copies. 
    7271                            jobsize *= self.filter.Ticket.Copies 
    73                     except AttributeError : # When not run from the cupspykota backend         
     72                    except AttributeError : # When not run from the cupspykota backend 
    7473                        pass 
    75                 infile.close()         
    7674        return jobsize         
    7775