From 57624b5df523c0b3a3ebc1741680f283ee1fbbcd Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 25 Mar 2010 10:04:02 +0100 Subject: * 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 --- python/indexfile.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python') 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 {} }; -- cgit v1.2.3