Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
62feedfa
Commit
62feedfa
authored
May 25, 2007
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minimal fixes to save the bootstrap on OSX.
parent
37afafdb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
Lib/distutils/sysconfig.py
Lib/distutils/sysconfig.py
+2
-1
Lib/distutils/text_file.py
Lib/distutils/text_file.py
+3
-3
No files found.
Lib/distutils/sysconfig.py
View file @
62feedfa
...
...
@@ -11,6 +11,7 @@ Email: <fdrake@acm.org>
__revision__
=
"$Id$"
import
io
import
os
import
re
import
sys
...
...
@@ -353,7 +354,7 @@ def _init_posix():
# load the installed pyconfig.h:
try:
filename = get_config_h_filename()
parse_config_h(open(filename), g)
parse_config_h(
io.
open(filename), g)
except IOError as msg:
my_msg = "
invalid
Python
installation
:
unable
to
open
%
s
" % filename
if hasattr(msg, "
strerror
"):
...
...
Lib/distutils/text_file.py
View file @
62feedfa
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment