diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-09-20 10:33:44 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-09-20 10:33:44 +0200 |
| commit | b5be0185f39aa90b86d13848531173c7ebed6b7b (patch) | |
| tree | df4c847d5ed510ba733c8a9985b81275c79589e1 /python/tag.cc | |
| parent | b410a7e17e3a255127ef054b9a867354face49f3 (diff) | |
| parent | cb12be4893d8ac79dcbaa77e30cf61d69a4e859e (diff) | |
| download | python-apt-b5be0185f39aa90b86d13848531173c7ebed6b7b.tar.gz | |
merged from lp:~mvo/python-apt/mvo
Diffstat (limited to 'python/tag.cc')
| -rw-r--r-- | python/tag.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/python/tag.cc b/python/tag.cc index 97039bc4..44cd06af 100644 --- a/python/tag.cc +++ b/python/tag.cc @@ -344,8 +344,12 @@ static PyObject *TagFileJump(PyObject *Self,PyObject *Args) // --------------------------------------------------------------------- static PyObject *TagSecNew(PyTypeObject *type,PyObject *Args,PyObject *kwds) { char *Data; + int Len; char *kwlist[] = {"text", 0}; - if (PyArg_ParseTupleAndKeywords(Args,kwds,"s",kwlist,&Data) == 0) + + // this allows reading "byte" types from python3 - but we don't + // make (much) use of it yet + if (PyArg_ParseTupleAndKeywords(Args,kwds,"s#",kwlist,&Data,&Len) == 0) return 0; // Create the object.. |
