view tools/base64 @ 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 c75defc1c2f0
children 9c3ec0a5c7fc
line wrap: on
line source

#!/usr/bin/env python
from __future__ import print_function
import zlib, base64, sys
print(base64.encodestring(zlib.compress(sys.stdin.read())))

Roundup Issue Tracker: http://roundup-tracker.org/