From 8d311d4829312718fcb6ab3d0385f8fa7f5cf3e1 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 2 Feb 2010 17:30:49 +0100 Subject: doc/client-example.cc: Update against the new API. --- debian/changelog | 1 + doc/client-example.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 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); -- cgit v1.2.3