[docs] typo in PyPNG docs

Benedek Zoltan benzolius at yahoo.com
Thu Apr 5 17:41:16 CEST 2012


There is a typo in the PyPNG page: http://packages.python.org/pypng/ex.html


A Palette

Example code:
"# Assume f and s have been set up as per previous example
palette=[(0x55,0x55,0x55), (0xff,0x99,0x99)]
w = png.Writer(len(s[0]), len(s), palette=palette, bitdepth=1) 

f.write(f, s)"

the last line should be: "w.write(f, s)"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20120405/add64261/attachment.html>

More information about the docs mailing list