diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-10-16 23:26:08 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-10-16 23:26:08 (GMT) |
commit | ba3dd9990fecb9b397169d254eb6dab6af8c86ec (patch) | |
tree | 1b4c2657be935ec4638456aea503231d4b65e22a /Modules/termios.c | |
parent | 9d620d018c64affba26debf4397cb86c6767714e (diff) | |
download | cpython-ba3dd9990fecb9b397169d254eb6dab6af8c86ec.zip cpython-ba3dd9990fecb9b397169d254eb6dab6af8c86ec.tar.gz cpython-ba3dd9990fecb9b397169d254eb6dab6af8c86ec.tar.bz2 |
Undo needless INCREF chicanery introduced by SF patch #450702.
Apparently this patch (rev 2.41) replaced all the good old "s#"
formats in PyArg_ParseTuple() with "S". Then it did
PyString_FromStringAndSize() to get back the values setup by the
"s#" format. It also incref'd and decref'd the string obtained by
"S" even though the argument tuple had a reference to it.
Replace PyString_AsString() calls with PyString_AS_STRING().
A good rule of thumb -- if you never check the return value of
PyString_AsString() to see if it's NULL, you ought to be using the
macro <wink>.
Diffstat (limited to 'Modules/termios.c')
0 files changed, 0 insertions, 0 deletions