Minimal fixes to save the bootstrap on OSX.

This commit is contained in:
Guido van Rossum 2007-05-25 18:39:29 +00:00
parent adee45ed2c
commit 63236cf386
2 changed files with 5 additions and 4 deletions

View file

@ -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"):