Mercurial > p > roundup > code
changeset 8311:dff6d2edc52f
fix: issue2551396: os.path.stat.ST_MTIME + windows python 3.13 crashes
Looks like os.path.stat was removed in 3.13 on windows. Use
stat.ST_MTIME instead. stat.ST_MTIME is also used in cgi/client.py.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 11 May 2025 17:37:57 -0400 |
| parents | e7002216d95c |
| children | ccbfe79e1e8c |
| files | roundup/cgi/engine_zopetal.py |
| diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/roundup/cgi/engine_zopetal.py Sun May 11 17:24:34 2025 -0400 +++ b/roundup/cgi/engine_zopetal.py Sun May 11 17:37:57 2025 -0400 @@ -7,6 +7,7 @@ import mimetypes import os import os.path +import stat from roundup.cgi.templating import StringIO, context, TALLoaderBase from roundup.cgi.PageTemplates import PageTemplate @@ -30,7 +31,7 @@ # has it changed? try: - stime = os.stat(src)[os.path.stat.ST_MTIME] + stime = os.stat(src)[stat.ST_MTIME] except os.error as error: if error.errno != errno.ENOENT: raise
