rotorobj_setkey(): A single string argument is now required (i.e. no

long optional with nearly-no-op missing).
This commit is contained in:
Barry Warsaw 1997-01-02 20:36:36 +00:00
parent 5afafad82d
commit 9e3fceb5b3
1 changed files with 3 additions and 5 deletions

View File

@ -767,14 +767,12 @@ rotorobj_setkey(self, args)
Rotorobj *self;
PyObject * args;
{
char *string = NULL;
char *key;
if (!PyArg_ParseTuple(args, "|s", &string))
if (!PyArg_ParseTuple(args, "s", &key))
return NULL;
if (string)
set_key(self, string);
set_key(self, key);
Py_INCREF(Py_None);
return Py_None;
}