diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-06-23 11:39:09 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-06-23 11:39:09 +0200 |
| commit | c41d1e0c66ab4effdf737ca4c9a9c86c08237451 (patch) | |
| tree | 7198603ccf3e2f09532d630333125ad77e8806da | |
| parent | 6e9b361307e4c024fd882ab4a59d39dfb2b25b60 (diff) | |
| download | python-apt-c41d1e0c66ab4effdf737ca4c9a9c86c08237451.tar.gz | |
python/configuration.cc: Make ConfigurationPtr,ConfigurationSub subclasses of Configuration.
This makes isinstance(apt_pkg.config, apt_pkg.Configuration) return True
instead of False.
| -rw-r--r-- | debian/changelog | 1 | ||||
| -rw-r--r-- | python/configuration.cc | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index c4486505..3209f7ee 100644 --- a/debian/changelog +++ b/debian/changelog @@ -20,6 +20,7 @@ python-apt (0.7.92) UNRELEASED; urgency=low * Merge 0.7.10.4 from unstable * debian/control: Update Standards-Version to 3.8.2 * Make AcquireFile a subclass of AcquireItem + * Make ConfigurationPtr,ConfigurationSub subclasses of Configuration. [ Sebastian Heinlein ] * apt/progress.py: Extract the package name from the status message diff --git a/python/configuration.cc b/python/configuration.cc index 365a35fd..9ef5967b 100644 --- a/python/configuration.cc +++ b/python/configuration.cc @@ -582,6 +582,9 @@ PyTypeObject ConfigurationPtrType = 0, // tp_iter 0, // tp_iternext CnfMethods, // tp_methods + 0, // tp_members + 0, // tp_getset + &ConfigurationType, // tp_base }; PyTypeObject ConfigurationSubType = @@ -618,5 +621,8 @@ PyTypeObject ConfigurationSubType = 0, // tp_iter 0, // tp_iternext CnfMethods, // tp_methods + 0, // tp_members + 0, // tp_getset + &ConfigurationType, // tp_base }; |
