summaryrefslogtreecommitdiff
path: root/Lib/email/header.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-08-03 23:27:32 +0000
committerBrett Cannon <bcannon@gmail.com>2008-08-03 23:27:32 +0000
commit1f571c6e602e7dc35d18cede0f70d34fd38e21ae (patch)
tree67b40a2e7268dd2cfefd22baa382591f8aee8b8f /Lib/email/header.py
parentb2f49ff88d0d5e42ffc26c48b8759c1432a4e55c (diff)
downloadcpython-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/header.py')
-rw-r--r--Lib/email/header.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/email/header.py b/Lib/email/header.py
index e139ccf64f..ab0d3fc76e 100644
--- a/Lib/email/header.py
+++ b/Lib/email/header.py
@@ -249,7 +249,7 @@ class Header:
elif not isinstance(charset, Charset):
charset = Charset(charset)
# If the charset is our faux 8bit charset, leave the string unchanged
- if charset <> '8bit':
+ if charset != '8bit':
# We need to test that the string can be converted to unicode and
# back to a byte string, given the input and output codecs of the
# charset.
@@ -455,7 +455,7 @@ def _split_ascii(s, firstlen, restlen, continuation_ws, splitchars):
# If this part is longer than maxlen and we aren't already
# splitting on whitespace, try to recursively split this line
# on whitespace.
- if partlen > maxlen and ch <> ' ':
+ if partlen > maxlen and ch != ' ':
subl = _split_ascii(part, maxlen, restlen,
continuation_ws, ' ')
lines.extend(subl[:-1])