]> granicus.if.org Git - python/commit
_encode_chunks(), encode(): Don't modify self._chunks. As Ben says:
authorBarry Warsaw <barry@python.org>
Sun, 13 Oct 2002 04:06:28 +0000 (04:06 +0000)
committerBarry Warsaw <barry@python.org>
Sun, 13 Oct 2002 04:06:28 +0000 (04:06 +0000)
commit0c358258c9c4b61659867f7feb140a6ac0e54ed1
tree924e747660abdddf9a44f69f284e5f2a19ea5911
parentab9439fdd48845e5fe7e75d0cdb7e8e8187e17fd
_encode_chunks(), encode(): Don't modify self._chunks.  As Ben says:

    Also, it fixes a really egregious error in Header.encode() (really
    in Header._encode_chunks()) that could cause a header to grow and
    grow each time encode() was called if output_codec was different
    from input_codec.

Also, fix a typo.
Lib/email/Header.py