mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-45060: Get rid of few uses of the equality operators with None (GH-28087)
This commit is contained in:
parent
08767c73b5
commit
3c65457156
9 changed files with 13 additions and 13 deletions
|
@ -144,7 +144,7 @@ def _encode_text(string, charset, cte, policy):
|
|||
linesep = policy.linesep.encode('ascii')
|
||||
def embedded_body(lines): return linesep.join(lines) + linesep
|
||||
def normal_body(lines): return b'\n'.join(lines) + b'\n'
|
||||
if cte==None:
|
||||
if cte is None:
|
||||
# Use heuristics to decide on the "best" encoding.
|
||||
if max((len(x) for x in lines), default=0) <= policy.max_line_length:
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue