summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-03-07 23:15:13 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-03-07 23:15:13 (GMT)
commitb9534f4ed5cb8c78468868d2ca44769057084d83 (patch)
tree587c0e879a0ca5291d026e4a5bab322dbff82146 /Lib
parente67c6c545b3b102fb84eb9317d8b83fb2ca2ca56 (diff)
downloadcpython-b9534f4ed5cb8c78468868d2ca44769057084d83.zip
cpython-b9534f4ed5cb8c78468868d2ca44769057084d83.tar.gz
cpython-b9534f4ed5cb8c78468868d2ca44769057084d83.tar.bz2
PEP8 fixup on previous patch, remove unused import in test_email.
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 cba0382..ab37e94 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 5e61a7b..a1ceb7f 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