Senthil Kumaran <orsent...@gmail.com> added the comment: Here is the corrected patch for caching the 301 redirections.
* It caches only the redirection not the response. * It retains cacheable=True kwarg for http_error_301 method. ( I feel, it should be useful) * Have made the cached dict as private. I have updated the tests. The existing tests for 301 see no changes too. If you have any review comments, please pitch in. (I shall add the docs and news entry before commit) Thanks! ---------- Added file: http://bugs.python.org/file15722/urllib2-301-redirection-CORRECTED.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1755841> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com