summaryrefslogtreecommitdiff
path: root/python/arfile.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-04-01 19:55:13 +0200
committerJulian Andres Klode <jak@debian.org>2010-04-01 19:55:13 +0200
commit17b0dc6856855f2cd46d234357f0de584db2019e (patch)
treeb17863d7e0c27290c98dc3f19846d44aab27666b /python/arfile.cc
parentc3d6edddcdcd40ff7477430a20a3e3be7e188963 (diff)
downloadpython-apt-17b0dc6856855f2cd46d234357f0de584db2019e.tar.gz
python: Document every class, function, property.
Finally, a complete reference to apt_pkg available via pydoc and __doc__ attributes.
Diffstat (limited to 'python/arfile.cc')
-rw-r--r--python/arfile.cc19
1 files changed, 9 insertions, 10 deletions
diff --git a/python/arfile.cc b/python/arfile.cc
index 4f3b4ad7..7ebf51f9 100644
--- a/python/arfile.cc
+++ b/python/arfile.cc
@@ -238,11 +238,11 @@ static PyObject *_extract(FileFd &Fd, const ARArchive::Member *member,
static const char *ararchive_extract_doc =
"extract(name: str[, target: str]) -> bool\n\n"
- "Extract the member given by name into the directory given by target.\n"
- "If the extraction failed, an error is raised. Otherwise, the method\n"
- "returns True if the owner could be set or False if the owner could not\n"
- "be changed. It may also raise LookupError if there is member with\n"
- "the given name.";
+ "Extract the member given by 'name' into the directory given\n"
+ "by 'target'. If the extraction failed, raise OSError. In case\n"
+ "of success, return True if the file owner could be set or\n"
+ "False if this was not possible. If the requested member\n"
+ "does not exist, raise LookupError.";
static PyObject *ararchive_extract(PyArArchiveObject *self, PyObject *args)
{
char *name = 0;
@@ -260,11 +260,10 @@ static PyObject *ararchive_extract(PyArArchiveObject *self, PyObject *args)
}
static const char *ararchive_extractall_doc =
- "extract([target: str]) -> bool\n\n"
- "Extract all into the directory given by target.\n"
- "If the extraction failed, an error is raised. Otherwise, the method\n"
- "returns True if the owner could be set or False if the owner could not\n"
- "be changed.";
+ "extractall([target: str]) -> bool\n\n"
+ "Extract all into the directory given by 'target'. If the extraction\n"
+ "failed, raise an error. Otherwise, return True if the owner could\n"
+ "be set or False if the owner could not be changed.";
static PyObject *ararchive_extractall(PyArArchiveObject *self, PyObject *args)
{