[Zope-Checkins] CVS: Zope3/lib/python/Zope/ContextWrapper - proxy.c:1.1.4.4

Fred L. Drake, Jr. fdrake@acm.org
Thu, 6 Jun 2002 14:05:21 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/ContextWrapper
In directory cvs.zope.org:/tmp/cvs-serv14729

Modified Files:
      Tag: Zope-3x-branch
	proxy.c 
Log Message:
wrap_init():  Repair bad return value.


=== Zope3/lib/python/Zope/ContextWrapper/proxy.c 1.1.4.3 => 1.1.4.4 ===
             PyErr_SetString(PyExc_TypeError,
                             "proxy.__init__ does not accept keyword args");
-            return NULL;
+            return -1;
         }
         /* If the object in this proxy is not the one we
          * received in args, replace it with the new one.