summaryrefslogtreecommitdiff
path: root/python/tag.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/tag.cc
parente74ead9f918b38bfe8ae5cfe941df4057dcc509e (diff)
downloadpython-apt-015acac98dc88fbbca5672c6be678c8dea491a8e.tar.gz
revert commit 346 (this re-enable the deprecation warnings)
Diffstat (limited to 'python/tag.cc')
-rw-r--r--python/tag.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/python/tag.cc b/python/tag.cc
index 5db34c1d..9fe12a1a 100644
--- a/python/tag.cc
+++ b/python/tag.cc
@@ -371,10 +371,9 @@ static PyObject *TagSecNew(PyTypeObject *type,PyObject *Args,PyObject *kwds) {
char *doc_ParseSection = "ParseSection(Text) -> TagSection()\n\nDeprecated.";
PyObject *ParseSection(PyObject *self,PyObject *Args)
{
- if (getenv("PYTHON_APT_DEPRECATION_WARNINGS") != NULL)
- PyErr_WarnEx(PyExc_DeprecationWarning, "apt_pkg.ParseSection() is "
- "deprecated. Please see apt_pkg.TagSection() for the "
- "replacement.", 1);
+ PyErr_WarnEx(PyExc_DeprecationWarning, "apt_pkg.ParseSection() is "
+ "deprecated. Please see apt_pkg.TagSection() for the "
+ "replacement.", 1);
return TagSecNew(&PyTagSection_Type,Args,0);
}
#endif
@@ -411,10 +410,9 @@ static PyObject *TagFileNew(PyTypeObject *type,PyObject *Args,PyObject *kwds)
#ifdef COMPAT_0_7
char *doc_ParseTagFile = "ParseTagFile(file) -> TagFile()\n\nDeprecated.";
PyObject *ParseTagFile(PyObject *self,PyObject *Args) {
- if (getenv("PYTHON_APT_DEPRECATION_WARNINGS") != NULL)
- PyErr_WarnEx(PyExc_DeprecationWarning, "apt_pkg.ParseTagFile() is "
- "deprecated. Please see apt_pkg.TagFile() for the "
- "replacement.", 1);
+ PyErr_WarnEx(PyExc_DeprecationWarning, "apt_pkg.ParseTagFile() is "
+ "deprecated. Please see apt_pkg.TagFile() for the "
+ "replacement.", 1);
return TagFileNew(&PyTagFile_Type,Args,0);
}
#endif