Changeset 450 for pkpgcounter/trunk/pkpgpdls/analyzer.py
- Timestamp:
- 02/08/07 22:23:59 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/analyzer.py
r443 r450 110 110 else : 111 111 # normal file 112 self.infile = open(self.filename, "rb ")112 self.infile = open(self.filename, "rbU") 113 113 self.mustclose = 1 114 114 return 115 115 116 116 # Use a temporary file, always seekable contrary to standard input. 117 self.infile = tempfile.TemporaryFile(mode="w+b ")117 self.infile = tempfile.TemporaryFile(mode="w+bU") 118 118 while 1 : 119 119 data = infile.read(pdlparser.MEGABYTE)