diff options
author | Alex Martelli <aleaxit@gmail.com> | 2006-08-24 02:58:11 (GMT) |
---|---|---|
committer | Alex Martelli <aleaxit@gmail.com> | 2006-08-24 02:58:11 (GMT) |
commit | 01c77c66289f8e9c8d15b8da623fae4014ec2edb (patch) | |
tree | f719c69719857899da42d2af8ceb48824cf4fe0d /Lib/distutils | |
parent | b5d47efe92fd12cde1de6a473108ef48238a43cc (diff) | |
download | cpython-01c77c66289f8e9c8d15b8da623fae4014ec2edb.zip cpython-01c77c66289f8e9c8d15b8da623fae4014ec2edb.tar.gz cpython-01c77c66289f8e9c8d15b8da623fae4014ec2edb.tar.bz2 |
Anna Ravenscroft identified many occurrences of "file" used to open a file
in the stdlib and changed each of them to use "open" instead. At this
time there are no other known occurrences that can be safely changed (in
Lib and all subdirectories thereof).
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/sysconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py index 0ea4bb7..96923bd 100644 --- a/Lib/distutils/sysconfig.py +++ b/Lib/distutils/sysconfig.py @@ -354,7 +354,7 @@ def _init_posix(): # load the installed pyconfig.h: try: filename = get_config_h_filename() - parse_config_h(file(filename), g) + parse_config_h(open(filename), g) except IOError, msg: my_msg = "invalid Python installation: unable to open %s" % filename if hasattr(msg, "strerror"): |