Merge: PEP8 fixup on previous patch, remove unused imports in test_email.
This commit is contained in:
commit
965794ed58
|
@ -156,7 +156,7 @@ class Generator:
|
||||||
self.write(self._NL)
|
self.write(self._NL)
|
||||||
laststripped = lines[-1].rstrip('\r\n')
|
laststripped = lines[-1].rstrip('\r\n')
|
||||||
self.write(laststripped)
|
self.write(laststripped)
|
||||||
if len(lines[-1])!=len(laststripped):
|
if len(lines[-1]) != len(laststripped):
|
||||||
self.write(self._NL)
|
self.write(self._NL)
|
||||||
|
|
||||||
def _write(self, msg):
|
def _write(self, msg):
|
||||||
|
|
|
@ -2,14 +2,10 @@
|
||||||
# Contact: email-sig@python.org
|
# Contact: email-sig@python.org
|
||||||
# email package unit tests
|
# email package unit tests
|
||||||
|
|
||||||
import os
|
|
||||||
import re
|
import re
|
||||||
import sys
|
|
||||||
import time
|
import time
|
||||||
import base64
|
import base64
|
||||||
import difflib
|
|
||||||
import unittest
|
import unittest
|
||||||
import warnings
|
|
||||||
import textwrap
|
import textwrap
|
||||||
|
|
||||||
from io import StringIO, BytesIO
|
from io import StringIO, BytesIO
|
||||||
|
@ -37,7 +33,7 @@ from email import iterators
|
||||||
from email import base64mime
|
from email import base64mime
|
||||||
from email import quoprimime
|
from email import quoprimime
|
||||||
|
|
||||||
from test.support import run_unittest, unlink
|
from test.support import unlink
|
||||||
from test.test_email import openfile, TestEmailBase
|
from test.test_email import openfile, TestEmailBase
|
||||||
|
|
||||||
NL = '\n'
|
NL = '\n'
|
||||||
|
|
Loading…
Reference in New Issue