diff options
author | Barry Warsaw <barry@python.org> | 2009-04-07 01:54:02 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2009-04-07 01:54:02 (GMT) |
commit | 90971e0cd278a9697684eff14d741c8de58ae5d4 (patch) | |
tree | 07882bc9ab587756d8ab07e096f02766763c63d2 /Lib/optparse.py | |
parent | 2b4857379412492b9a830d75cb289ec74188e530 (diff) | |
download | cpython-90971e0cd278a9697684eff14d741c8de58ae5d4.zip cpython-90971e0cd278a9697684eff14d741c8de58ae5d4.tar.gz cpython-90971e0cd278a9697684eff14d741c8de58ae5d4.tar.bz2 |
Bump to 2.6.2c1.
Diffstat (limited to 'Lib/optparse.py')
-rw-r--r-- | Lib/optparse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/optparse.py b/Lib/optparse.py index 56b05d6..4a74a68 100644 --- a/Lib/optparse.py +++ b/Lib/optparse.py @@ -995,7 +995,7 @@ class OptionContainer: """add_option(Option) add_option(opt_str, ..., kwarg=val, ...) """ - if type(args[0]) is types.StringType: + if type(args[0]) in types.StringTypes: option = self.option_class(*args, **kwargs) elif len(args) == 1 and not kwargs: option = args[0] |