Remove Barry's love of deprecated syntax to silence warnings in the email
package, when run under -3, about using <>.
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 @@
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 @@
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