diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-09-13 11:10:40 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-09-13 11:10:40 +0200 |
| commit | 41a9f7533f9ac3824a710a7ac3cf1e01d9159e7e (patch) | |
| tree | db16f69b19448f6e93e0cf9952af2c6744c9575a /python/tag.cc | |
| parent | a8e7d5e6931e56fbe67f5dd33c5da0705468fe0b (diff) | |
| parent | 34274f571119f0a2a3fd2fec0074aa682657b241 (diff) | |
| download | python-apt-41a9f7533f9ac3824a710a7ac3cf1e01d9159e7e.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.. |
