[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

STINNER Victor report at bugs.python.org
Mon Apr 15 05:50:12 EDT 2019


STINNER Victor <vstinner at redhat.com> added the comment:

support.is_android has two flaws:

* it's a constant: it must be spelled as UPPER CASE
* I dislike "is_" prefix: "MS_WINDOWS" constant is commonly used, and it doesn't start with "is_".

In my PR, I used support.ANDROID.

----------

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


More information about the Python-bugs-list mailing list