This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: struni: fix str/bytes errors for test_oldmailbox
Type: Stage:
Components: Library (Lib) Versions: Python 3.0
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: alexandre.vassalotti
Priority: normal Keywords: patch

Created on 2007-07-20 20:07 by alexandre.vassalotti, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_oldmailbox.patch alexandre.vassalotti, 2007-07-20 20:07
Messages (3)
msg52920 - (view) Author: Alexandre Vassalotti (alexandre.vassalotti) * (Python committer) Date: 2007-07-20 20:07
This patch replaces isinstance(s, str) by isinstance(s, bytes) for checking non-unicode strings. It also makes _ProxyFile.get_file() open files in "standard" mode (non-binary). 
msg52921 - (view) Author: Alexandre Vassalotti (alexandre.vassalotti) * (Python committer) Date: 2007-07-20 20:49
My change to _ProxyFile.get_file() is bad idea. Please wait for my updated patch that will also fix test_mailbox.
msg52922 - (view) Author: Alexandre Vassalotti (alexandre.vassalotti) * (Python committer) Date: 2007-07-20 22:46
Superseded by patch #1757839
Changing status to closed.
History
Date User Action Args
2022-04-11 14:56:25adminsetgithub: 45229
2008-01-06 22:29:45adminsetkeywords: - py3k
versions: + Python 3.0
2007-07-20 20:07:26alexandre.vassalotticreate