diff options
author | Guido van Rossum <guido@python.org> | 2007-05-25 18:39:29 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-25 18:39:29 (GMT) |
commit | 63236cf386574484d9f594af4b464c44c579cf25 (patch) | |
tree | 23f9d321388ef322abaf501001c0785ef48bab9f /Lib/distutils/text_file.py | |
parent | adee45ed2c5c6602de6d9dd5f13c02fc262a23fe (diff) | |
download | cpython-63236cf386574484d9f594af4b464c44c579cf25.zip cpython-63236cf386574484d9f594af4b464c44c579cf25.tar.gz cpython-63236cf386574484d9f594af4b464c44c579cf25.tar.bz2 |
Minimal fixes to save the bootstrap on OSX.
Diffstat (limited to 'Lib/distutils/text_file.py')
-rw-r--r-- | Lib/distutils/text_file.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/distutils/text_file.py b/Lib/distutils/text_file.py index c23a31d..9d4d42b 100644 --- a/Lib/distutils/text_file.py +++ b/Lib/distutils/text_file.py @@ -7,7 +7,7 @@ lines, and joining lines with backslashes.""" __revision__ = "$Id$" from types import * -import sys, os +import sys, os, io class TextFile: @@ -34,7 +34,7 @@ class TextFile: something that provides 'readline()' and 'close()' methods). It is recommended that you supply at least 'filename', so that TextFile can include it in warning messages. If 'file' is not supplied, - TextFile creates its own using the 'open()' builtin. + TextFile creates its own using 'io.open()'. The options are all boolean, and affect the value returned by 'readline()': @@ -118,7 +118,7 @@ class TextFile: 'filename' and 'file' arguments to the constructor.""" self.filename = filename - self.file = open (self.filename, 'r') + self.file = io.open (self.filename, 'r') self.current_line = 0 |