[Python-checkins] python/dist/src/Objects abstract.c,2.101,2.102

theller@users.sourceforge.net theller@users.sourceforge.net
Wed, 05 Jun 2002 05:55:22 -0700


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

Modified Files:
	abstract.c 
Log Message:
Better isinstance error message.

Closes SF patch # 560250.

Bugfix candidate IMO.


Index: abstract.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/abstract.c,v
retrieving revision 2.101
retrieving revision 2.102
diff -C2 -d -r2.101 -r2.102
*** abstract.c	23 Apr 2002 22:45:44 -0000	2.101
--- abstract.c	5 Jun 2002 12:55:19 -0000	2.102
***************
*** 1977,1981 ****
  			if (!PyErr_Occurred())
  				PyErr_SetString(PyExc_TypeError,
! 				"isinstance() arg 2 must be a class or type");
  			return -1;
  		}
--- 1977,1982 ----
  			if (!PyErr_Occurred())
  				PyErr_SetString(PyExc_TypeError,
! 				"isinstance() arg 2 must be a class, type,"
! 				" or tuple of classes and types");
  			return -1;
  		}