summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-02-02 17:30:49 +0100
committerJulian Andres Klode <jak@debian.org>2010-02-02 17:30:49 +0100
commit8d311d4829312718fcb6ab3d0385f8fa7f5cf3e1 (patch)
tree0fdcbf3d23472aa035b9ce6aeb1332702e60422a
parentb2a1af65654e4584d6b54c5d4e12175ff0dffad9 (diff)
downloadpython-apt-8d311d4829312718fcb6ab3d0385f8fa7f5cf3e1.tar.gz
doc/client-example.cc: Update against the new API.
-rw-r--r--debian/changelog1
-rw-r--r--doc/client-example.cc2
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);