Author: Maciej Fijalkowski <[email protected]>
Branch: 
Changeset: r48446:2612cae35357
Date: 2011-10-25 19:00 +0200
http://bitbucket.org/pypy/pypy/changeset/2612cae35357/

Log:    I swear I did that change before - remove the incorrect usage of
        close introduced by chance when experimenting with closing urllib2
        requests.

diff --git a/lib-python/modified-2.7/urllib2.py 
b/lib-python/modified-2.7/urllib2.py
--- a/lib-python/modified-2.7/urllib2.py
+++ b/lib-python/modified-2.7/urllib2.py
@@ -395,11 +395,7 @@
         meth_name = protocol+"_response"
         for processor in self.process_response.get(protocol, []):
             meth = getattr(processor, meth_name)
-            try:
-                response = meth(req, response)
-            except:
-                response.close()
-                raise
+            response = meth(req, response)
 
         return response
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to