summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-03-25 10:04:02 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2010-03-25 10:04:02 +0100
commit57624b5df523c0b3a3ebc1741680f283ee1fbbcd (patch)
tree5a0362b76478568cda6a213025f35eb977f68e6c /python
parent05b659d926b999015db3c47c7e5335093d9cbfff (diff)
downloadpython-apt-57624b5df523c0b3a3ebc1741680f283ee1fbbcd.tar.gz
* apt/__init__.py:
- only show deprecation warnings if PYTHON_APT_DEPRECATION_WARNINGS is set in the environment * python/indexfile.cc: - add missing 0.7 compat indexfile.ArchiveURI method
Diffstat (limited to 'python')
-rw-r--r--python/indexfile.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/indexfile.cc b/python/indexfile.cc
index c6d0b1cc..5e66b06a 100644
--- a/python/indexfile.cc
+++ b/python/indexfile.cc
@@ -28,6 +28,9 @@ static PyObject *IndexFileArchiveURI(PyObject *Self,PyObject *Args)
static PyMethodDef IndexFileMethods[] =
{
{"archive_uri",IndexFileArchiveURI,METH_VARARGS,"Returns the ArchiveURI"},
+#ifdef COMPAT_0_7
+ {"ArchiveURI",IndexFileArchiveURI,METH_VARARGS,"Returns the ArchiveURI"},
+#endif
{}
};