[New-bugs-announce] [issue31955] set_executables() incorrectly parse values with spaces

Dee Mee report at bugs.python.org
Mon Nov 6 05:34:35 EST 2017


New submission from Dee Mee <mazay0 at gmail.com>:

Function set_executable() in ccompiler.py does the following check:

    def set_executable(self, key, value):
        if isinstance(value, str):
            setattr(self, key, split_quoted(value))
        else:
            setattr(self, key, value)


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

----------
components: Distutils
messages: 305627
nosy: Dee Mee, dstufft, eric.araujo
priority: normal
severity: normal
status: open
title: set_executables() incorrectly parse values with spaces
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6

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


More information about the New-bugs-announce mailing list