Mercurial > p > roundup > code
diff roundup/cgi/engine_zopetal.py @ 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 | 310e19beba3e |
| children |
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
