diff options
| author | Guido van Rossum <guido@python.org> | 2007-01-10 16:19:56 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2007-01-10 16:19:56 +0000 |
| commit | ba04afa355a9b33a8dc4e52e11de3b11cae13afd (patch) | |
| tree | 563471f06497ad3accac2dc9bb8cf8cb73879a9e /sysconfig.py | |
| parent | 6c3e3687e30a200343363312dc6ee61e0dce9d8b (diff) | |
| download | python-setuptools-git-ba04afa355a9b33a8dc4e52e11de3b11cae13afd.tar.gz | |
SF patch 1631942 by Collin Winter:
(a) "except E, V" -> "except E as V"
(b) V is now limited to a simple name (local variable)
(c) V is now deleted at the end of the except block
Diffstat (limited to 'sysconfig.py')
| -rw-r--r-- | sysconfig.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig.py b/sysconfig.py index 8989d92b..9de72346 100644 --- a/sysconfig.py +++ b/sysconfig.py @@ -344,7 +344,7 @@ def _init_posix(): try: filename = get_makefile_filename() parse_makefile(filename, g) - except IOError, msg: + except IOError as msg: my_msg = "invalid Python installation: unable to open %s" % filename if hasattr(msg, "strerror"): my_msg = my_msg + " (%s)" % msg.strerror @@ -355,7 +355,7 @@ def _init_posix(): try: filename = get_config_h_filename() parse_config_h(open(filename), g) - except IOError, msg: + except IOError as msg: my_msg = "invalid Python installation: unable to open %s" % filename if hasattr(msg, "strerror"): my_msg = my_msg + " (%s)" % msg.strerror |
