Rev 3432: Fixed as per Matt Nordhoff review. in http://bazaar.launchpad.net/%7Evila/bzr/229076-conn-reset-by-peer

Vincent Ladeuil v.ladeuil+lp at free.fr
Sun May 18 08:34:52 BST 2008


At http://bazaar.launchpad.net/%7Evila/bzr/229076-conn-reset-by-peer

------------------------------------------------------------
revno: 3432
revision-id: v.ladeuil+lp at free.fr-20080518073422-iy08xdty0komg39e
parent: v.ladeuil+lp at free.fr-20080517175347-our2rugcwl67zgv5
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 229076-conn-reset-by-peer
timestamp: Sun 2008-05-18 09:34:22 +0200
message:
  Fixed as per Matt Nordhoff review.
  
  * bzrlib/transport/http/_urllib2_wrappers.py:
  (AbstractHTTPHandler.do_open): Use iteritems instead of items to
  avoid a useless copy.
modified:
  bzrlib/transport/http/_urllib2_wrappers.py _urllib2_wrappers.py-20060913231729-ha9ugi48ktx481ao-1
-------------- next part --------------
=== modified file 'bzrlib/transport/http/_urllib2_wrappers.py'
--- a/bzrlib/transport/http/_urllib2_wrappers.py	2008-05-17 17:53:47 +0000
+++ b/bzrlib/transport/http/_urllib2_wrappers.py	2008-05-18 07:34:22 +0000
@@ -517,7 +517,7 @@
         # before sending the request. And not all versions of python 2.5 do
         # that. Since we replace urllib2.AbstractHTTPHandler.do_open we do it
         # ourself below.
-        headers = dict((name.title(), val) for name, val in headers.items())
+        headers = dict((name.title(), val) for name, val in headers.iteritems())
 
         try:
             method = request.get_method()



More information about the bazaar-commits mailing list