[issue35346] Modernize Lib/platform.py code
STINNER Victor
report at bugs.python.org
Wed Dec 12 11:57:36 EST 2018
STINNER Victor <vstinner at redhat.com> added the comment:
> Top-imported warnings is not used.
Fixed by commit b8e689a6e8134e88f857a55e50b6a4977967e385.
> struct.calcsize('P') is always success.
I wrote PR 11130 for that.
Note: struct.calcsize('P') always works on Python 2.7 as well.
> plistlib is always available.
I don't know this module. This module imports many other modules like xml.parsers.expat. I don't think that the try/except ImportError hurts. Feel free to propose a PR if you want.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35346>
_______________________________________
More information about the Python-bugs-list
mailing list