mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
9cb587c43a
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.) |
||
---|---|---|
.. | ||
cicon.pl | ||
icon.pl | ||
macicon.py | ||
Makefile | ||
mkicon.py |