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

Skip to content

Commit 08c82b8

Browse files
committed
openfile(): Go back to opening the files in text mode. This undoes
the change in revision 1.11 (test_email.py) in response to SF bug #609988. We now think that was the wrong fix and that WinZip was the real culprit there.
1 parent 487fe6a commit 08c82b8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/email/test/test_email.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
def openfile(filename):
4848
path = os.path.join(os.path.dirname(landmark), 'data', filename)
49-
return open(path, 'rb')
49+
return open(path, 'r')
5050

5151

5252

Lib/email/test/test_email_torture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
def openfile(filename):
2323
from os.path import join, dirname, abspath
2424
path = abspath(join(dirname(testfile), os.pardir, 'moredata', filename))
25-
return open(path, 'rb')
25+
return open(path, 'r')
2626

2727
# Prevent this test from running in the Python distro
2828
try:

0 commit comments

Comments
 (0)