diff options
author | Mark Sapiro <mark@msapiro.net> | 2018-03-12 17:36:25 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2018-03-12 17:36:25 -0700 |
commit | 3f4ed2805b0bf1f877a6717e6d15d8d351cc924e (patch) | |
tree | 7a54e0b3550509ece656998f01aa2cbd744f7f11 | |
parent | 21eafd3e46083eded01f67ea828bc7b46ffb3f07 (diff) | |
download | mailman2-3f4ed2805b0bf1f877a6717e6d15d8d351cc924e.tar.gz mailman2-3f4ed2805b0bf1f877a6717e6d15d8d351cc924e.tar.xz mailman2-3f4ed2805b0bf1f877a6717e6d15d8d351cc924e.zip |
Fixed another Python 2.7 dependency.
Diffstat (limited to '')
-rw-r--r-- | Mailman/Handlers/ToDigest.py | 5 | ||||
-rw-r--r-- | NEWS | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/Mailman/Handlers/ToDigest.py b/Mailman/Handlers/ToDigest.py index 046cbaba..15042075 100644 --- a/Mailman/Handlers/ToDigest.py +++ b/Mailman/Handlers/ToDigest.py @@ -72,10 +72,9 @@ def to_cset_out(text, lcset): # Convert text from unicode or lcset to output cset. ocset = Charset(lcset).get_output_charset() or lcset if isinstance(text, unicode): - return text.encode(ocset, errors='replace') + return text.encode(ocset, 'replace') else: - return text.decode(lcset, errors='replace').encode(ocset, - errors='replace') + return text.decode(lcset, 'replace').encode(ocset, 'replace') @@ -14,6 +14,9 @@ Here is a history of user visible changes to Mailman. Bug fixes and other patches + - A Python 2.7 dependency introduced in the ToDigests handler in Mailman + 2.1.24 has been removed. (LP: #1755317) + - Bad values in a list's topics will no longer break everything that might instantiate the list. (LP: #1754516) |