mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
Bump to 2.6.2c1.
This commit is contained in:
parent
2b48573794
commit
90971e0cd2
7 changed files with 20 additions and 20 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue