mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Remove Barry's love of deprecated syntax to silence warnings in the email
package, when run under -3, about using <>.
This commit is contained in:
parent
b2f49ff88d
commit
1f571c6e60
6 changed files with 13 additions and 13 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue