commit | 5932c9bedd959eb8a25b8d3ad40907142cbaa4f4 | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Sat Sep 28 17:47:56 2002 +0000 |
committer | Barry Warsaw <barry@python.org> | Sat Sep 28 17:47:56 2002 +0000 |
tree | 052b728647b84c14b209a75b773c14f8bf0d918f | |
parent | 176916a98928c1828acd997f5bc11863f0d36c71 [diff] |
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