Patches item #1757839, was opened at 2007-07-20 18:45
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1757839&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 3000
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Alexandre Vassalotti (avassalotti)
Assigned to: Nobody/Anonymous (nobody)
Summary: struni: make test_mailbox and test_old_mailbox pass

Initial Comment:
This patch make reads to a file return a string of the str type. This required 
to change the mode of certain call to open() to non-binary. I have no idea if 
this will cause problem, but at least the tests pass. If someone wants to keep 
opening these file in binary mode, then he will have to create a "proxy" class, 
like _ProxyFile in mailbox.py but with writing support, since file opened in 
binary mode always return string of the bytes type. Another solution would be 
to wrap every read() and readline() calls, on these files, with str().

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1757839&group_id=5470
_______________________________________________
Patches mailing list
[email protected]
http://mail.python.org/mailman/listinfo/patches

Reply via email to