[Python-checkins] python/dist/src/Objects setobject.c,1.4,1.5

gvanrossum at users.sourceforge.net gvanrossum at users.sourceforge.net
Tue Nov 18 14:27:23 EST 2003


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

Modified Files:
	setobject.c 
Log Message:
Implement straightforward suggestions from gcc warnings (remove unused
variable, add extra braces).


Index: setobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/setobject.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** setobject.c	18 Nov 2003 14:15:31 -0000	1.4
--- setobject.c	18 Nov 2003 19:27:19 -0000	1.5
***************
*** 71,76 ****
  set_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
  {
- 	PyObject *iterable = NULL;
- 
  	return make_new_set(type, NULL);
  }
--- 71,74 ----
***************
*** 782,790 ****
  set_discard(PySetObject *so, PyObject *item)
  {
! 	if (PyDict_DelItem(so->data, item) == -1)
  		if  (PyErr_ExceptionMatches(PyExc_KeyError))
  			PyErr_Clear();
  		else
  			return NULL;
  	Py_INCREF(Py_None);
  	return Py_None;
--- 780,789 ----
  set_discard(PySetObject *so, PyObject *item)
  {
! 	if (PyDict_DelItem(so->data, item) == -1) {
  		if  (PyErr_ExceptionMatches(PyExc_KeyError))
  			PyErr_Clear();
  		else
  			return NULL;
+ 	}
  	Py_INCREF(Py_None);
  	return Py_None;





More information about the Python-checkins mailing list