]> granicus.if.org Git - python/commit
Added a feature suggested by Martin v Loewis, where a new header
authorBarry Warsaw <barry@python.org>
Sat, 28 Sep 2002 17:47:56 +0000 (17:47 +0000)
committerBarry Warsaw <barry@python.org>
Sat, 28 Sep 2002 17:47:56 +0000 (17:47 +0000)
commit5932c9bedd959eb8a25b8d3ad40907142cbaa4f4
tree052b728647b84c14b209a75b773c14f8bf0d918f
parent176916a98928c1828acd997f5bc11863f0d36c71
Added a feature suggested by Martin v Loewis, where a new header
encoding flag SHORTEST means to return the shortest encoding between
base64 and qp.  This is used for the header_enc for utf-8.  SHORTEST
isn't legal for body_enc.

Also some code cleanup:

- use True/False everywhere
- use == instead of `is' in a few places
- added _unicode() and make consistent the "is unicode" checks
- update docstrings
Lib/email/Charset.py