summaryrefslogtreecommitdiffstats
path: root/Lib/email/contentmanager.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/email/contentmanager.py')
-rw-r--r--Lib/email/contentmanager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/contentmanager.py b/Lib/email/contentmanager.py
index 3cf62dc..fcf278d 100644
--- a/Lib/email/contentmanager.py
+++ b/Lib/email/contentmanager.py
@@ -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: