Xuanji Li <xua...@gmail.com> added the comment: Actually I don't think you can go around changing test_urllib2.py, they are after all regression tests... and surely some users will send "" as data.
My patch handles the case of 0-length data specially, removing the need for 2) Can call len but not buffer: assume len == #bytes ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue3243> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com