Very small zlib/svg problem

Skip Montanaro skip at pobox.com
Thu Mar 28 09:58:33 EST 2002


Oleg wrote:

    f = gzip.open("c:/test.svgz", "w")
                   ^^ this suggests to use binary modes for binary files:
    f = gzip.open("c:/test.svgz", "wb")

Patch submitted to force 'b'.  Feel free to check it out and comment.  In
particular, since I don't run on Windows I can't really test it out where it
matters.

    http://python.org/sf/536278

-- 
Skip Montanaro (skip at pobox.com - http://www.mojam.com/)




More information about the Python-list mailing list