summaryrefslogtreecommitdiff
path: root/doc
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 /doc
parentb2a1af65654e4584d6b54c5d4e12175ff0dffad9 (diff)
downloadpython-apt-8d311d4829312718fcb6ab3d0385f8fa7f5cf3e1.tar.gz
doc/client-example.cc: Update against the new API.
Diffstat (limited to 'doc')
-rw-r--r--doc/client-example.cc2
1 files changed, 1 insertions, 1 deletions
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);