diff options
author | Victor Stinner <vstinner@python.org> | 2024-03-08 17:49:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 17:49:09 (GMT) |
commit | 61831585b637eb621bc80ae39e2e59541c135dc5 (patch) | |
tree | 5f0dec65569062951a2d481f32d86301e0069f87 /Python/compile.c | |
parent | cca30230d992c46dfb607dcc24b3dc2e6d05f536 (diff) | |
download | cpython-61831585b637eb621bc80ae39e2e59541c135dc5.zip cpython-61831585b637eb621bc80ae39e2e59541c135dc5.tar.gz cpython-61831585b637eb621bc80ae39e2e59541c135dc5.tar.bz2 |
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".
Diffstat (limited to 'Python/compile.c')
0 files changed, 0 insertions, 0 deletions