]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Replace stat.ST_xxx usage with os.stat().st_xxx (#116501)
authorVictor Stinner <vstinner@python.org>
Fri, 8 Mar 2024 17:49:09 +0000 (18:49 +0100)
committerGitHub <noreply@github.com>
Fri, 8 Mar 2024 17:49:09 +0000 (18:49 +0100)
commit61831585b637eb621bc80ae39e2e59541c135dc5
tree5f0dec65569062951a2d481f32d86301e0069f87
parentcca30230d992c46dfb607dcc24b3dc2e6d05f536
Replace stat.ST_xxx usage with os.stat().st_xxx (#116501)

Modernize code to use the new API which avoids the usage of the stat
module just to read os.stat() members.

* Sort logging.handlers imports.
* Rework reopenIfNeeded() code to make it easier to follow.
* Replace "not self.stream" with "self.stream is None".
Lib/logging/handlers.py
Lib/test/test_largefile.py
Lib/test/test_mailbox.py