Show
Ignore:
Timestamp:
07/26/07 23:54:09 (17 years ago)
Author:
jerome
Message:

Fixed problem with Python 2.5

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pkpgpdls/analyzer.py

    r450 r459  
    115115             
    116116        # Use a temporary file, always seekable contrary to standard input. 
    117         self.infile = tempfile.TemporaryFile(mode="w+bU") 
     117        self.infile = tempfile.TemporaryFile(mode="w+b") # TODO : not opened in universal newline mode, Python 2.5 refuses. 
    118118        while 1 : 
    119119            data = infile.read(pdlparser.MEGABYTE)