[Zope3-checkins]
SVN: Zope3/trunk/src/zope/testbrowser/mechanize/_mechanize.py
Okay, I think I got it right now.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Fri Oct 28 14:29:50 EDT 2005
Log message for revision 39693:
Okay, I think I got it right now.
Changed:
U Zope3/trunk/src/zope/testbrowser/mechanize/_mechanize.py
-=-
Modified: Zope3/trunk/src/zope/testbrowser/mechanize/_mechanize.py
===================================================================
--- Zope3/trunk/src/zope/testbrowser/mechanize/_mechanize.py 2005-10-28 16:28:46 UTC (rev 39692)
+++ Zope3/trunk/src/zope/testbrowser/mechanize/_mechanize.py 2005-10-28 18:29:50 UTC (rev 39693)
@@ -107,9 +107,12 @@
self._response.close()
self.request = self._response = None
self.form = None
- [response.close()
- for request, response in self._history
- if response is not None]
+ for request, response in self._history:
+ try:
+ response.close()
+ except AttributeError:
+ pass # eoffiles do not have close()
+
self._history = []
self._forms = self._title = self._links = None
More information about the Zope3-Checkins
mailing list