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 /python | |
| 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.
Diffstat (limited to 'python')
| -rw-r--r-- | python/configuration.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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 }; |
