diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-19 15:40:40 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-19 15:40:40 +0200 |
| commit | 48cc0bcaabe824f49987ed3236b9421c583226dd (patch) | |
| tree | b993f5ede89dfd33a189b8bcb172b523a9fb391b /python/cdromprogress.cc | |
| parent | 92d2315a87d24c51f2f0d3265c87c59f0d9730c3 (diff) | |
| download | python-apt-48cc0bcaabe824f49987ed3236b9421c583226dd.tar.gz | |
python/progress.cc: CdromProgress.ask_cdrom_name() shall return None on failure.
Diffstat (limited to 'python/cdromprogress.cc')
| -rw-r--r-- | python/cdromprogress.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/cdromprogress.cc b/python/cdromprogress.cc index 09c76a2a..440b5ce6 100644 --- a/python/cdromprogress.cc +++ b/python/cdromprogress.cc @@ -37,7 +37,7 @@ static PyObject *cdromprogress_change_cdrom(PyObject *self, PyObject *args) // Takes a single PyObject argument as *arg static PyObject *cdromprogress_ask_cdrom_name(PyObject *self, PyObject *arg) { - Py_RETURN_FALSE; + Py_RETURN_NONE; } static PyMethodDef cdromprogress_methods[] = { @@ -47,8 +47,8 @@ static PyMethodDef cdromprogress_methods[] = { "change_cdrom() -> bool\n\nAsk for the CD-ROM to be changed.\n" "Return False if the user requested to cancel the action (default)."}, {"ask_cdrom_name",cdromprogress_ask_cdrom_name,METH_O, - "ask_cdrom_name(name: str) -> bool\n\nAsk for the name of the CD-ROM.\n" - "Return False if the user requested to cancel the action (default)."}, + "ask_cdrom_name() -> str\n\nAsk for the name of the CD-ROM.\n" + "Return None if the user requested to cancel the action (default)."}, {NULL} }; |
