[Checkins] Re: SVN: zope.publisher/trunk/src/zope/publisher/http.py
optimized the code change
Philipp von Weitershausen
philipp at weitershausen.de
Mon Aug 20 04:02:44 EDT 2007
Could you also please make sure this change is ported to the 3.4 branch
of zope.publisher? Thanks!
nikhil n wrote:
> 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
--
http://worldcookery.com -- Professional Zope documentation and training
More information about the Checkins
mailing list