diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-19 15:39:53 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-19 15:39:53 +0200 |
| commit | 92d2315a87d24c51f2f0d3265c87c59f0d9730c3 (patch) | |
| tree | 26b9a41aba8a79151c8969bc411c73c3d1542be1 /python/apt_pkgmodule.cc | |
| parent | 5c219e07aea347f652cf7949dc74f37282a17144 (diff) | |
| download | python-apt-92d2315a87d24c51f2f0d3265c87c59f0d9730c3.tar.gz | |
python/apt_pkgmodule.cc: Fix apt_pkg.gettext to not ignore second parameter.
Diffstat (limited to 'python/apt_pkgmodule.cc')
| -rw-r--r-- | python/apt_pkgmodule.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/python/apt_pkgmodule.cc b/python/apt_pkgmodule.cc index b6ae709e..cbf88294 100644 --- a/python/apt_pkgmodule.cc +++ b/python/apt_pkgmodule.cc @@ -29,7 +29,6 @@ #include <Python.h> /*}}}*/ - /** * A Python->C->Python gettext() function. * @@ -41,7 +40,7 @@ static PyObject *py_gettext(PyObject *self, PyObject *Args) { const char *msg; char *domain = "python-apt"; - if (PyArg_ParseTuple(Args,"s|s:gettext",&msg) == 0) + if (PyArg_ParseTuple(Args,"s|s:gettext",&msg, &domain) == 0) return 0; return PyString_FromString(dgettext(domain, msg)); |
