https://bugzilla.novell.com/show_bug.cgi?id=466997
User suse-tux@gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=466997#c33
--- Comment #33 from Marcus Hüwe
there. the class stringonly behaves like a string on the outside, so the "sendIng a read()able" won't happen and old behavior is restored.
Wouldn't it be easier to get the the sequence representation of the mmap object via the buffer() built-in function? Instead of data = stringonly(data) we would use data = buffer(data) which creates a reference to the mmap object's sequence representation. If we pass "data" to urllib2/httplib it'll behave like a buffer type and everything will be fine. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.