mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
Minimal fixes to save the bootstrap on OSX.
This commit is contained in:
parent
adee45ed2c
commit
63236cf386
2 changed files with 5 additions and 4 deletions
|
@ -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"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue