summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1997-01-02 20:36:36 (GMT)
committerBarry Warsaw <barry@python.org>1997-01-02 20:36:36 (GMT)
commit9e3fceb5b3a7e2506ce3b9085a6ede2f6124e4db (patch)
treeedc1701b45fa62d98d039e17ad301b3d20d374a7 /Modules
parent5afafad82d3e42be49d9e6a1eb95f2f3ed58fab0 (diff)
downloadcpython-9e3fceb5b3a7e2506ce3b9085a6ede2f6124e4db.zip
cpython-9e3fceb5b3a7e2506ce3b9085a6ede2f6124e4db.tar.gz
cpython-9e3fceb5b3a7e2506ce3b9085a6ede2f6124e4db.tar.bz2
rotorobj_setkey(): A single string argument is now required (i.e. no
long optional with nearly-no-op missing).
Diffstat (limited to 'Modules')
-rw-r--r--Modules/rotormodule.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/Modules/rotormodule.c b/Modules/rotormodule.c
index d0da590..1985e4c 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;
}