[Zope-Checkins] CVS: Zope3/lib/python/Zope/Security - _Proxy.c:1.1.2.15
Guido van Rossum
guido@python.org
Fri, 26 Apr 2002 09:42:06 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/Security
In directory cvs.zope.org:/tmp/cvs-serv18045
Modified Files:
Tag: SecurityProxy-branch
_Proxy.c
Log Message:
Remove a redundant "optimization" from the Proxy_Check() macro -- the
PyObject_TypeCheck() macro already contains the same optimization.
(Fred: this applies to your wrapper.c and proxy.c too!)
=== Zope3/lib/python/Zope/Security/_Proxy.c 1.1.2.14 => 1.1.2.15 ===
#define Proxy_Check(proxy) \
- (((proxy)->ob_type == &ProxyType) \
- || (PyObject_TypeCheck(proxy, &ProxyType)))
+ PyObject_TypeCheck(proxy, &ProxyType)
#define Proxy_GetObject(proxy) \
(((ProxyObject *)proxy)->proxy_object)