Skip to content

Commit 249f24a

Browse files
committed
Fix test failure by better detecting string options from an updated ConfigParser.
1 parent b1615d1 commit 249f24a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setuptools/dist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ def _set_command_options(self, command_obj, option_dict=None):
660660
neg_opt = {}
661661

662662
try:
663-
is_string = isinstance(value, str)
663+
is_string = isinstance(value, six.string_types)
664664
if option in neg_opt and is_string:
665665
setattr(command_obj, neg_opt[option], not strtobool(value))
666666
elif option in bool_opts and is_string:

0 commit comments

Comments
 (0)