diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2000-08-03 02:34:44 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2000-08-03 02:34:44 (GMT) |
commit | a1abb728bc0d3898539ea89effa7906a50366f1a (patch) | |
tree | 91b7f25e125d8c550fa277e32023a2a39a249619 /Modules/termios.c | |
parent | 767bf49b6b3d8825cfa5c52c2e8019bd23429fcd (diff) | |
download | cpython-a1abb728bc0d3898539ea89effa7906a50366f1a.zip cpython-a1abb728bc0d3898539ea89effa7906a50366f1a.tar.gz cpython-a1abb728bc0d3898539ea89effa7906a50366f1a.tar.bz2 |
Use METH_OLDARGS instead of numeric constant 0 in method def. tables
Diffstat (limited to 'Modules/termios.c')
-rw-r--r-- | Modules/termios.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Modules/termios.c b/Modules/termios.c index 0dbb257..91ab484 100644 --- a/Modules/termios.c +++ b/Modules/termios.c @@ -278,12 +278,18 @@ termios_tcflow(PyObject *self, PyObject *args) static PyMethodDef termios_methods[] = { - {"tcgetattr", termios_tcgetattr, 0, termios_tcgetattr__doc__}, - {"tcsetattr", termios_tcsetattr, 0, termios_tcsetattr__doc__}, - {"tcsendbreak", termios_tcsendbreak, 0, termios_tcsendbreak__doc__}, - {"tcdrain", termios_tcdrain, 0, termios_tcdrain__doc__}, - {"tcflush", termios_tcflush, 0, termios_tcflush__doc__}, - {"tcflow", termios_tcflow, 0, termios_tcflow__doc__}, + {"tcgetattr", termios_tcgetattr, + METH_OLDARGS, termios_tcgetattr__doc__}, + {"tcsetattr", termios_tcsetattr, + METH_OLDARGS, termios_tcsetattr__doc__}, + {"tcsendbreak", termios_tcsendbreak, + METH_OLDARGS, termios_tcsendbreak__doc__}, + {"tcdrain", termios_tcdrain, + METH_OLDARGS, termios_tcdrain__doc__}, + {"tcflush", termios_tcflush, + METH_OLDARGS, termios_tcflush__doc__}, + {"tcflow", termios_tcflow, + METH_OLDARGS, termios_tcflow__doc__}, {NULL, NULL} }; |