summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/email/generator.py2
-rw-r--r--Lib/email/test/test_email.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/Lib/email/generator.py b/Lib/email/generator.py
index cba0382fed..ab37e94dbe 100644
--- a/Lib/email/generator.py
+++ b/Lib/email/generator.py
@@ -129,7 +129,7 @@ class Generator:
self.write(self._NL)
laststripped = lines[-1].rstrip('\r\n')
self.write(laststripped)
- if len(lines[-1])!=len(laststripped):
+ if len(lines[-1]) != len(laststripped):
self.write(self._NL)
def _write(self, msg):
diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py
index 5e61a7b97a..a1ceb7f1b5 100644
--- a/Lib/email/test/test_email.py
+++ b/Lib/email/test/test_email.py
@@ -9,7 +9,6 @@ import time
import base64
import difflib
import unittest
-import warnings
import textwrap
from io import StringIO, BytesIO