summaryrefslogtreecommitdiff
path: root/python/acquire.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-06-01 17:14:30 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-06-01 17:14:30 +0200
commit015acac98dc88fbbca5672c6be678c8dea491a8e (patch)
treeea4c6b4a385aa25d96746886589f2928e58891af /python/acquire.cc
parente74ead9f918b38bfe8ae5cfe941df4057dcc509e (diff)
downloadpython-apt-015acac98dc88fbbca5672c6be678c8dea491a8e.tar.gz
revert commit 346 (this re-enable the deprecation warnings)
Diffstat (limited to 'python/acquire.cc')
-rw-r--r--python/acquire.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/python/acquire.cc b/python/acquire.cc
index 1d750f37..6f9a1412 100644
--- a/python/acquire.cc
+++ b/python/acquire.cc
@@ -404,9 +404,8 @@ PyTypeObject PyAcquire_Type = {
#ifdef COMPAT_0_7
PyObject *GetAcquire(PyObject *Self,PyObject *Args)
{
- if (getenv("PYTHON_APT_DEPRECATION_WARNINGS") != NULL)
- PyErr_WarnEx(PyExc_DeprecationWarning,"apt_pkg.GetAcquire() is deprecated."
- " Please see apt_pkg.Acquire() for the replacement.", 1);
+ PyErr_WarnEx(PyExc_DeprecationWarning,"apt_pkg.GetAcquire() is deprecated."
+ " Please see apt_pkg.Acquire() for the replacement.", 1);
return PkgAcquireNew(&PyAcquire_Type,Args,0);
}
#endif