summaryrefslogtreecommitdiff
path: root/python/generic.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/generic.cc
parente74ead9f918b38bfe8ae5cfe941df4057dcc509e (diff)
downloadpython-apt-015acac98dc88fbbca5672c6be678c8dea491a8e.tar.gz
revert commit 346 (this re-enable the deprecation warnings)
Diffstat (limited to 'python/generic.cc')
-rw-r--r--python/generic.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/python/generic.cc b/python/generic.cc
index 0719d1bb..e04743ff 100644
--- a/python/generic.cc
+++ b/python/generic.cc
@@ -102,8 +102,7 @@ PyObject *_PyAptObject_getattro(PyObject *self, PyObject *attr) {
strlen(attrname) + 66];
sprintf(warning_string, "Attribute '%s' of the '%s' object is "
"deprecated, use '%s' instead.", attrname, cls, newattrname);
- if (getenv("PYTHON_APT_DEPRECATION_WARNINGS") != NULL)
- PyErr_WarnEx(PyExc_DeprecationWarning, warning_string, 1);
+ PyErr_WarnEx(PyExc_DeprecationWarning, warning_string, 1);
delete[] warning_string;
} else {
Py_XINCREF(ptype);