1. Armin Rigo
  2. cpython-withatomic


Barry Warsaw  committed 15ee299

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.

This and the Parser.py patch will be forward ported into Python 2.3
and email 2.5.

  • Participants
  • Parent commits e218475
  • Branches 2.2

Comments (0)

Files changed (2)

File Lib/email/test/test_email.py

View file
 def openfile(filename):
     path = os.path.join(os.path.dirname(landmark), 'data', filename)
-    return open(path, 'rb')
+    return open(path, 'r')

File Lib/email/test/test_email_torture.py

View file
 def openfile(filename):
     from os.path import join, dirname, abspath
     path = abspath(join(dirname(testfile), os.pardir, 'moredata', filename))
-    return open(path, 'rb')
+    return open(path, 'r')
 # Prevent this test from running in the Python distro