diff options
| author | Julian Andres Klode <jak@debian.org> | 2013-08-26 13:39:57 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2013-09-11 20:14:52 +0200 |
| commit | 044322b4dca1135671a93ebfe1601214f7f6e655 (patch) | |
| tree | 6b9ba04f4aab7f24bfead1da769aa6707140975c /python/tag.cc | |
| parent | 14086582c87c4297fd14bd3c3831afd3cd1d2833 (diff) | |
| download | python-apt-044322b4dca1135671a93ebfe1601214f7f6e655.tar.gz | |
Remove old API compatibility C++ support code
Diffstat (limited to 'python/tag.cc')
| -rw-r--r-- | python/tag.cc | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/python/tag.cc b/python/tag.cc index 6ae439f5..a0f526ad 100644 --- a/python/tag.cc +++ b/python/tag.cc @@ -418,16 +418,6 @@ static PyObject *TagSecNew(PyTypeObject *type,PyObject *Args,PyObject *kwds) { return New; } -#ifdef COMPAT_0_7 -char *doc_ParseSection = "ParseSection(Text) -> TagSection()\n\nDeprecated."; -PyObject *ParseSection(PyObject *self,PyObject *Args) -{ - 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 /*}}}*/ // ParseTagFile - Parse a tagd file /*{{{*/ // --------------------------------------------------------------------- @@ -507,15 +497,6 @@ static PyObject *TagFileNew(PyTypeObject *type,PyObject *Args,PyObject *kwds) return HandleErrors(New); } -#ifdef COMPAT_0_7 -char *doc_ParseTagFile = "ParseTagFile(file) -> TagFile()\n\nDeprecated."; -PyObject *ParseTagFile(PyObject *self,PyObject *Args) { - 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 /*}}}*/ // RewriteSection - Rewrite a section.. /*{{{*/ // --------------------------------------------------------------------- |
