[Checkins] SVN: zope.publisher/trunk/src/zope/publisher/http.py
optimized the code change
nikhil n
nikhil.n.n at gmail.com
Fri Aug 17 11:16:29 EDT 2007
Log message for revision 78908:
optimized the code change
Changed:
U zope.publisher/trunk/src/zope/publisher/http.py
-=-
Modified: zope.publisher/trunk/src/zope/publisher/http.py
===================================================================
--- zope.publisher/trunk/src/zope/publisher/http.py 2007-08-17 14:14:42 UTC (rev 78907)
+++ zope.publisher/trunk/src/zope/publisher/http.py 2007-08-17 15:16:28 UTC (rev 78908)
@@ -822,7 +822,7 @@
Calls self.setBody() with an error response.
"""
t, v = exc_info[:2]
- if isinstance(t, ClassType) or isinstance(t, type):
+ if isinstance(t, (ClassType, type)):
if issubclass(t, Redirect):
self.redirect(v.getLocation())
return
More information about the Checkins
mailing list