summaryrefslogtreecommitdiff
path: root/src/distutils2/fancy_getopt.py
diff options
context:
space:
mode:
author?ric Araujo <merwok@netwok.org>2010-06-26 01:43:30 +0200
committer?ric Araujo <merwok@netwok.org>2010-06-26 01:43:30 +0200
commitbdc0c044f10ee2d74581799c4f1aed4f89bdec47 (patch)
tree703ece9347374e9eacaa853f081556717275a5f6 /src/distutils2/fancy_getopt.py
parentac68a8c17be2d6c1db1ecdcf9b6e10d287ed1c76 (diff)
downloaddisutils2-bdc0c044f10ee2d74581799c4f1aed4f89bdec47.tar.gz
Make all classes new-style classes.
This will make 3.x migration easier (we will catch incompatibilities sooner thanks to python2.6 -3, e.g. the __hash__ deprecation warning), it allows us to use properties, super and other niceties, and new-style classes are instantiated faster.
Diffstat (limited to 'src/distutils2/fancy_getopt.py')
-rw-r--r--src/distutils2/fancy_getopt.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/distutils2/fancy_getopt.py b/src/distutils2/fancy_getopt.py
index 1382b24..e0ac736 100644
--- a/src/distutils2/fancy_getopt.py
+++ b/src/distutils2/fancy_getopt.py
@@ -30,7 +30,7 @@ neg_alias_re = re.compile("^(%s)=!(%s)$" % (longopt_pat, longopt_pat))
# (for use as attributes of some object).
longopt_xlate = string.maketrans('-', '_')
-class FancyGetopt:
+class FancyGetopt(object):
"""Wrapper around the standard 'getopt()' module that provides some
handy extra functionality:
* short and long options are tied together
@@ -473,7 +473,7 @@ def translate_longopt(opt):
return string.translate(opt, longopt_xlate)
-class OptionDummy:
+class OptionDummy(object):
"""Dummy class just used as a place to hold command-line option
values as instance attributes."""