[pypy-commit] pypy default: I swear I did that change before - remove the incorrect usage of close
fijal
noreply at buildbot.pypy.org
Tue Oct 25 19:01:03 CEST 2011
Author: Maciej Fijalkowski <fijall at gmail.com>
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
More information about the pypy-commit
mailing list