- Timestamp:
- 06/19/04 00:24:03 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/pdlanalyzer.py
r1552 r1553 22 22 # 23 23 # $Log$ 24 # Revision 1.10 2004/06/18 22:24:03 jalet 25 # Removed old comments 26 # 24 27 # Revision 1.9 2004/06/18 22:21:27 jalet 25 28 # Native PDF parser greatly improved. … … 417 420 else : 418 421 # normal file 419 self.infile = open(self.filename, "rb") # TODO : "U" mode only works in 2.3, is ignored in 2.1 and 2.2422 self.infile = open(self.filename, "rb") 420 423 self.mustclose = 1 421 424 return 422 425 423 426 # Use a temporary file, always seekable contrary to standard input. 424 # This also has the benefit to let us use the "U" mode (new in Python 2.3) 425 self.infile = tempfile.TemporaryFile(mode="w+b") # TODO : "U" mode only works in 2.3, is ignored in 2.1 and 2.2 427 self.infile = tempfile.TemporaryFile(mode="w+b") 426 428 while 1 : 427 429 data = infile.read(MEGABYTE)