[issue31955] distutils C compiler: set_executables() incorrectly parse values with spaces

STINNER Victor report at bugs.python.org
Mon Nov 6 10:43:31 EST 2017


STINNER Victor <victor.stinner at gmail.com> added the comment:

> The check "if isinstance(value, str)" is incorrect, because type of value can be unicode, while it should be splitted as well.

Your pull request is for Python 3, but the type of paths is expected to be str on Python 3, no?

For Python 2, you can use isinstance(value, basestring).

----------
nosy: +haypo
versions: +Python 3.7 -Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31955>
_______________________________________


More information about the Python-bugs-list mailing list