Guido van Rossum wrote: > On 11/4/07, christian.heimes <[email protected]> wrote: >> Author: christian.heimes >> Date: Sun Nov 4 21:42:13 2007 >> New Revision: 58846 >> >> Modified: >> python/branches/py3k-pep3137/Lib/test/test_urllib2.py >> python/branches/py3k-pep3137/Lib/urllib2.py >> Log: >> Fixed bug in urllib2 >> str(b) == b is causing some bugs and maybe hiding some more. I'm not sure if >> it was a wise idea to allow it. > > I don't understand this comment. When is str(b) == b except when b is > a str instance?
You can't understand the comment because some vital information is missing. Either my svn client or the svn server has swallowed the " and '. str(b) == b should read str(b'') == "b''". The urrlib2 tests were broken because auth_hdr_value was "Basic b'somedata'" instead of "Basic somedata". Christian _______________________________________________ Python-3000-checkins mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000-checkins
