◐ Shell
clean mode source ↗

bpo-30028: os.getpid() is always available by vstinner · Pull Request #1074 · python/cpython

Remove hasattr(os, 'getpid') from logging.LogRecord constructor. The
test was added in 2003 with the commit 4c641d0: "getpid doesn't
exist on MacOS9", but Python 3.7 doesn't support MacOS9 anymore.