Changeset 1544 for pykota

Show
Ignore:
Timestamp:
06/18/04 12:09:05 (20 years ago)
Author:
jalet
Message:

Resets file pointer to start of file in all cases

Location:
pykota/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/NEWS

    r1543 r1544  
    2424    - 1.19alpha22 : 
    2525     
     26        - Ensures that the file pointer for job's data is  
     27          reset to the start of the job's datas after the 
     28          job's size pre-computation phase. 
     29           
    2630        - Improved PostScript detection code for bad drivers 
    2731          which don't correctly switch languages between PJL 
  • pykota/trunk/pykota/pdlanalyzer.py

    r1543 r1544  
    2222# 
    2323# $Log$ 
     24# Revision 1.5  2004/06/18 10:09:05  jalet 
     25# Resets file pointer to start of file in all cases 
     26# 
    2427# Revision 1.4  2004/06/18 06:16:14  jalet 
    2528# Fixes PostScript detection code for incorrect drivers 
     
    403406        if self.mustclose : 
    404407            self.infile.close()     
     408        else :     
     409            # if we don't have to close the file, then 
     410            # ensure the file pointer is reset to the  
     411            # start of the file in case the process wants 
     412            # to read the file again. 
     413            try : 
     414                self.infile.seek(0) 
     415            except :     
     416                pass    # probably stdin, which is not seekable 
    405417         
    406418    def isPostScript(self, data) :