1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00
putty-source/icons
Colin Watson 9cb587c43a mkicon.py: Write output files as binary.
In Python 3, open(path, "w") defaults to text files encoded using some
default encoding, which of course isn't what we want for image data.
Use open(path, "wb") instead, and adjust the write calls to use forms
that work with Python 3.  bytes() and bytearray() are available as of
Python 2.6.

(This could be simplified to e.g. b"%c%c%c%c" % (r,g,b,a), and similarly
avoiding the manual .encode call; but %-formatting on bytes requires
Python 3.5, and I thought it might be better to be compatible with older
versions of Python 3.)
2019-08-31 13:15:17 +01:00
..
cicon.pl Shiny new script which constructs the various icons for the PuTTY 2007-01-06 18:15:35 +00:00
icon.pl Improve error reporting. 2007-01-22 14:04:33 +00:00
macicon.py Use NetPBM .pam as an intermediate format in the icon makefile. 2016-03-23 06:58:56 +00:00
Makefile Make an OS X icon for pterm as well as PuTTY. 2016-03-23 22:02:46 +00:00
mkicon.py mkicon.py: Write output files as binary. 2019-08-31 13:15:17 +01:00