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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters