diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-06-30 04:59:59 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-06-30 04:59:59 (GMT) |
commit | 4e542a3d9995addd08e7675a63cb0c8ee61a5010 (patch) | |
tree | 454ba0e1362c5075c21f5f435771a8222f05d6cb | |
parent | 9262b8ab1fc49b1beb36bbcd60efc7946e770cd5 (diff) | |
download | cpython-4e542a3d9995addd08e7675a63cb0c8ee61a5010.zip cpython-4e542a3d9995addd08e7675a63cb0c8ee61a5010.tar.gz cpython-4e542a3d9995addd08e7675a63cb0c8ee61a5010.tar.bz2 |
replace constant 1 with symbolic constant METH_VARARGS
another typo caught by Rob Hooft
-rw-r--r-- | Python/exceptions.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Python/exceptions.c b/Python/exceptions.c index a656dbf..4596c27 100644 --- a/Python/exceptions.c +++ b/Python/exceptions.c @@ -189,7 +189,7 @@ static PyObject* get_self(PyObject* args) * * 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 + * assumptions about the existence of any other exception class -- except * for TypeError, which can conditionally exist. * * Next, StandardError is created (which is quite simple) followed by @@ -282,9 +282,9 @@ Exception__getitem__(PyObject* self, PyObject* args) static PyMethodDef Exception_methods[] = { /* methods for the Exception class */ - { "__getitem__", Exception__getitem__, 1}, - { "__str__", Exception__str__, 1}, - { "__init__", Exception__init__, 1}, + { "__getitem__", Exception__getitem__, METH_VARARGS}, + { "__str__", Exception__str__, METH_VARARGS}, + { "__init__", Exception__init__, METH_VARARGS}, { NULL, NULL } }; @@ -396,7 +396,7 @@ SystemExit__init__(PyObject* self, PyObject* args) PyMethodDef SystemExit_methods[] = { - { "__init__", SystemExit__init__, 1}, + { "__init__", SystemExit__init__, METH_VARARGS}, {NULL, NULL} }; @@ -576,8 +576,8 @@ EnvironmentError__str__(PyObject* self, PyObject* args) static PyMethodDef EnvironmentError_methods[] = { - {"__init__", EnvironmentError__init__, 1}, - {"__str__", EnvironmentError__str__, 1}, + {"__init__", EnvironmentError__init__, METH_VARARGS}, + {"__str__", EnvironmentError__str__, METH_VARARGS}, {NULL, NULL} }; @@ -726,8 +726,8 @@ SyntaxError__str__(PyObject* self, PyObject* args) PyMethodDef SyntaxError_methods[] = { - {"__init__", SyntaxError__init__, 1}, - {"__str__", SyntaxError__str__, 1}, + {"__init__", SyntaxError__init__, METH_VARARGS}, + {"__str__", SyntaxError__str__, METH_VARARGS}, {NULL, NULL} }; |