From: Barry Warsaw Date: Thu, 2 Jan 1997 20:36:36 +0000 (+0000) Subject: rotorobj_setkey(): A single string argument is now required (i.e. no X-Git-Tag: v1.5a1~619 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e3fceb5b3a7e2506ce3b9085a6ede2f6124e4db;p=thirdparty%2FPython%2Fcpython.git rotorobj_setkey(): A single string argument is now required (i.e. no long optional with nearly-no-op missing). --- diff --git a/Modules/rotormodule.c b/Modules/rotormodule.c index d0da590cede1..1985e4c2edfb 100644 --- a/Modules/rotormodule.c +++ b/Modules/rotormodule.c @@ -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; }