summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2019-01-26 21:48:38 -0500
committerJason R. Coombs <jaraco@jaraco.com>2019-01-26 21:48:38 -0500
commit249f24a1f04ce390a9e48a4d8a5bff7982714c86 (patch)
tree0c0df2e2133cbc96df33233fa3ffda258280525c
parentb1615d12435289c21853be2f4f40e523317998da (diff)
downloadpython-setuptools-git-249f24a1f04ce390a9e48a4d8a5bff7982714c86.tar.gz
Fix test failure by better detecting string options from an updated ConfigParser.
-rw-r--r--setuptools/dist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py
index a7ebe73b..b8551228 100644
--- a/setuptools/dist.py
+++ b/setuptools/dist.py
@@ -660,7 +660,7 @@ class Distribution(_Distribution):
neg_opt = {}
try:
- is_string = isinstance(value, str)
+ is_string = isinstance(value, six.string_types)
if option in neg_opt and is_string:
setattr(command_obj, neg_opt[option], not strtobool(value))
elif option in bool_opts and is_string: