Bump to 2.6.2c1.

This commit is contained in:
Barry Warsaw 2009-04-07 01:54:02 +00:00
parent 2b48573794
commit 90971e0cd2
7 changed files with 20 additions and 20 deletions

View file

@ -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]