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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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) :