diff options
| author | Brett Cannon <bcannon@gmail.com> | 2008-08-03 23:27:32 (GMT) |
|---|---|---|
| committer | Brett Cannon <bcannon@gmail.com> | 2008-08-03 23:27:32 (GMT) |
| commit | 1f571c6e602e7dc35d18cede0f70d34fd38e21ae (patch) | |
| tree | 67b40a2e7268dd2cfefd22baa382591f8aee8b8f /Lib/email/charset.py | |
| parent | b2f49ff88d0d5e42ffc26c48b8759c1432a4e55c (diff) | |
| download | cpython-1f571c6e602e7dc35d18cede0f70d34fd38e21ae.zip cpython-1f571c6e602e7dc35d18cede0f70d34fd38e21ae.tar.gz cpython-1f571c6e602e7dc35d18cede0f70d34fd38e21ae.tar.bz2 | |
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/charset.py')
| -rw-r--r-- | Lib/email/charset.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/email/charset.py b/Lib/email/charset.py index d5ed3a8..9bebf6f 100644 --- a/Lib/email/charset.py +++ b/Lib/email/charset.py @@ -253,7 +253,7 @@ class Charset: Returns "base64" if self.body_encoding is BASE64. Returns "7bit" otherwise. """ - assert self.body_encoding <> SHORTEST + assert self.body_encoding != SHORTEST if self.body_encoding == QP: return 'quoted-printable' elif self.body_encoding == BASE64: @@ -263,7 +263,7 @@ class Charset: def convert(self, s): """Convert a string from the input_codec to the output_codec.""" - if self.input_codec <> self.output_codec: + if self.input_codec != self.output_codec: return unicode(s, self.input_codec).encode(self.output_codec) else: return s |
