summaryrefslogtreecommitdiff
path: root/fancy_getopt.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-01-10 16:19:56 +0000
committerGuido van Rossum <guido@python.org>2007-01-10 16:19:56 +0000
commitba04afa355a9b33a8dc4e52e11de3b11cae13afd (patch)
tree563471f06497ad3accac2dc9bb8cf8cb73879a9e /fancy_getopt.py
parent6c3e3687e30a200343363312dc6ee61e0dce9d8b (diff)
downloadpython-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 'fancy_getopt.py')
-rw-r--r--fancy_getopt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fancy_getopt.py b/fancy_getopt.py
index 31cf0c5c..62a24e85 100644
--- a/fancy_getopt.py
+++ b/fancy_getopt.py
@@ -256,7 +256,7 @@ class FancyGetopt:
short_opts = string.join(self.short_opts)
try:
opts, args = getopt.getopt(args, short_opts, self.long_opts)
- except getopt.error, msg:
+ except getopt.error as msg:
raise DistutilsArgError, msg
for opt, val in opts: