[Python-checkins] CVS: python/dist/src/Python exceptions.c,1.2,1.3
Jeremy Hylton
python-dev@python.org
Thu, 29 Jun 2000 22:00:06 -0700
Update of /cvsroot/python/python/dist/src/Python
In directory slayer.i.sourceforge.net:/tmp/cvs-serv29201/Python
Modified Files:
exceptions.c
Log Message:
replace constant 1 with symbolic constant METH_VARARGS
another typo caught by Rob Hooft
Index: exceptions.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/exceptions.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** exceptions.c 2000/06/20 18:36:26 1.2
--- exceptions.c 2000/06/30 04:59:59 1.3
***************
*** 190,194 ****
* First thing we create is the base class for all exceptions, called
* appropriately enough: Exception. Creation of this class makes no
! * assumptions about the existance of any other exception class -- except
* for TypeError, which can conditionally exist.
*
--- 190,194 ----
* First thing we create is the base class for all exceptions, called
* appropriately enough: Exception. Creation of this class makes no
! * assumptions about the existence of any other exception class -- except
* for TypeError, which can conditionally exist.
*
***************
*** 283,289 ****
Exception_methods[] = {
/* methods for the Exception class */
! { "__getitem__", Exception__getitem__, 1},
! { "__str__", Exception__str__, 1},
! { "__init__", Exception__init__, 1},
{ NULL, NULL }
};
--- 283,289 ----
Exception_methods[] = {
/* methods for the Exception class */
! { "__getitem__", Exception__getitem__, METH_VARARGS},
! { "__str__", Exception__str__, METH_VARARGS},
! { "__init__", Exception__init__, METH_VARARGS},
{ NULL, NULL }
};
***************
*** 397,401 ****
PyMethodDef SystemExit_methods[] = {
! { "__init__", SystemExit__init__, 1},
{NULL, NULL}
};
--- 397,401 ----
PyMethodDef SystemExit_methods[] = {
! { "__init__", SystemExit__init__, METH_VARARGS},
{NULL, NULL}
};
***************
*** 577,582 ****
static
PyMethodDef EnvironmentError_methods[] = {
! {"__init__", EnvironmentError__init__, 1},
! {"__str__", EnvironmentError__str__, 1},
{NULL, NULL}
};
--- 577,582 ----
static
PyMethodDef EnvironmentError_methods[] = {
! {"__init__", EnvironmentError__init__, METH_VARARGS},
! {"__str__", EnvironmentError__str__, METH_VARARGS},
{NULL, NULL}
};
***************
*** 727,732 ****
PyMethodDef SyntaxError_methods[] = {
! {"__init__", SyntaxError__init__, 1},
! {"__str__", SyntaxError__str__, 1},
{NULL, NULL}
};
--- 727,732 ----
PyMethodDef SyntaxError_methods[] = {
! {"__init__", SyntaxError__init__, METH_VARARGS},
! {"__str__", SyntaxError__str__, METH_VARARGS},
{NULL, NULL}
};