diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-08-03 23:27:32 +0000 |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-08-03 23:27:32 +0000 |
commit | 1f571c6e602e7dc35d18cede0f70d34fd38e21ae (patch) | |
tree | 67b40a2e7268dd2cfefd22baa382591f8aee8b8f /Lib/email/base64mime.py | |
parent | b2f49ff88d0d5e42ffc26c48b8759c1432a4e55c (diff) | |
download | cpython-git-1f571c6e602e7dc35d18cede0f70d34fd38e21ae.tar.gz |
Remove Barry's love of deprecated syntax to silence warnings in the email
package, when run under -3, about using <>.
Diffstat (limited to 'Lib/email/base64mime.py')
-rw-r--r-- | Lib/email/base64mime.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/base64mime.py b/Lib/email/base64mime.py index 8e76e433c5..05f960c306 100644 --- a/Lib/email/base64mime.py +++ b/Lib/email/base64mime.py @@ -145,7 +145,7 @@ def encode(s, binary=True, maxlinelen=76, eol=NL): # BAW: should encode() inherit b2a_base64()'s dubious behavior in # adding a newline to the encoded string? enc = b2a_base64(s[i:i + max_unencoded]) - if enc.endswith(NL) and eol <> NL: + if enc.endswith(NL) and eol != NL: enc = enc[:-1] + eol encvec.append(enc) return EMPTYSTRING.join(encvec) |