diff options
| -rw-r--r-- | debian/changelog | 1 | ||||
| -rw-r--r-- | doc/client-example.cc | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 51472a0c..fd87a576 100644 --- a/debian/changelog +++ b/debian/changelog @@ -24,6 +24,7 @@ python-apt (0.7.93.1) UNRELEASED; urgency=low - Handle the case where ararchive_new returns NULL in debfile_new. * apt/progress/base.py: - select.error objects do not have an errno attribute (Closes: #568005) + * doc/client-example.cc: Update against the new API. -- Julian Andres Klode <jak@debian.org> Sat, 23 Jan 2010 15:35:55 +0100 diff --git a/doc/client-example.cc b/doc/client-example.cc index 7f01b637..73fa3eed 100644 --- a/doc/client-example.cc +++ b/doc/client-example.cc @@ -32,7 +32,7 @@ extern "C" void initclient() { // Create a HashString, which will be added to the module. HashString *hash = new HashString("0966a120bb936bdc6fdeac445707aa6b"); // Create a Python object for the hashstring and add it to the module - PyModule_AddObject(Module, "hash", PyHashString_FromCpp(hash)); + PyModule_AddObject(Module, "hash", PyHashString_FromCpp(hash, false, NULL)); // Another example: Add the HashString type to the module. Py_INCREF(&PyHashString_Type); |
