Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 965794e

Browse files
committed
Merge: PEP8 fixup on previous patch, remove unused imports in test_email.
2 parents addb0be + b9534f4 commit 965794e

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

Lib/email/generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def _write_lines(self, lines):
156156
self.write(self._NL)
157157
laststripped = lines[-1].rstrip('\r\n')
158158
self.write(laststripped)
159-
if len(lines[-1])!=len(laststripped):
159+
if len(lines[-1]) != len(laststripped):
160160
self.write(self._NL)
161161

162162
def _write(self, msg):

Lib/test/test_email/test_email.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22
33
# email package unit tests
44

5-
import os
65
import re
7-
import sys
86
import time
97
import base64
10-
import difflib
118
import unittest
12-
import warnings
139
import textwrap
1410

1511
from io import StringIO, BytesIO
@@ -37,7 +33,7 @@
3733
from email import base64mime
3834
from email import quoprimime
3935

40-
from test.support import run_unittest, unlink
36+
from test.support import unlink
4137
from test.test_email import openfile, TestEmailBase
4238

4339
NL = '\n'

0 commit comments

Comments
 (0)