Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
965794ed
Commit
965794ed
authored
Mar 07, 2013
by
R David Murray
Browse files
Options
Browse Files
Download
Plain Diff
Merge: PEP8 fixup on previous patch, remove unused imports in test_email.
parents
addb0be6
b9534f4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
Lib/email/generator.py
Lib/email/generator.py
+1
-1
Lib/test/test_email/test_email.py
Lib/test/test_email/test_email.py
+1
-5
No files found.
Lib/email/generator.py
View file @
965794ed
...
...
@@ -156,7 +156,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
):
...
...
Lib/test/test_email/test_email.py
View file @
965794ed
...
...
@@ -2,14 +2,10 @@
# Contact: email-sig@python.org
# email package unit tests
import
os
import
re
import
sys
import
time
import
base64
import
difflib
import
unittest
import
warnings
import
textwrap
from
io
import
StringIO
,
BytesIO
...
...
@@ -37,7 +33,7 @@ from email import iterators
from
email
import
base64mime
from
email
import
quoprimime
from
test.support
import
run_unittest
,
unlink
from
test.support
import
unlink
from
test.test_email
import
openfile
,
TestEmailBase
NL
=
'
\
n
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment