[Python-checkins] python/dist/src/Objects abstract.c,2.114,2.115

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Mon, 10 Feb 2003 08:05:48 -0800


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv8425

Modified Files:
	abstract.c 
Log Message:
Fold long lines.


Index: abstract.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/abstract.c,v
retrieving revision 2.114
retrieving revision 2.115
diff -C2 -d -r2.114 -r2.115
*** abstract.c	31 Dec 2002 19:50:03 -0000	2.114
--- abstract.c	10 Feb 2003 16:05:43 -0000	2.115
***************
*** 1,5 ****
  /* Abstract Object Interface (many thanks to Jim Fulton) */
  
- 
  #include "Python.h"
  #include <ctype.h>
--- 1,4 ----
***************
*** 2094,2098 ****
  
  	if (!PyClass_Check(derived) || !PyClass_Check(cls)) {
! 		if (!check_class(derived, "issubclass() arg 1 must be a class"))
  			return -1;
  
--- 2093,2098 ----
  
  	if (!PyClass_Check(derived) || !PyClass_Check(cls)) {
! 		if (!check_class(derived,
! 				 "issubclass() arg 1 must be a class"))
  			return -1;
  
***************
*** 2101,2107 ****
  			int n = PyTuple_GET_SIZE(cls);
  			for (i = 0; i < n; ++i) {
! 				retval = PyObject_IsSubclass(derived, PyTuple_GET_ITEM(cls, i));
! 				if (retval != 0) /* either found it, or got an error */
  					return retval;
  			}
  			return 0;
--- 2101,2110 ----
  			int n = PyTuple_GET_SIZE(cls);
  			for (i = 0; i < n; ++i) {
! 				retval = PyObject_IsSubclass(
! 					derived, PyTuple_GET_ITEM(cls, i));
! 				if (retval != 0) {
! 					/* either found it, or got an error */
  					return retval;
+ 				}
  			}
  			return 0;