diff options
| author | Julian Andres Klode <jak@debian.org> | 2013-10-23 19:38:48 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2013-10-23 19:38:48 +0200 |
| commit | ea815d93dda86504518bdf69488b1f336f2439a3 (patch) | |
| tree | 76b2899f7ef8913392b8994fc7592292a7402624 /python/string.cc | |
| parent | 0d616ec4ef49064412b27275dbbb1cb04b546fb5 (diff) | |
| download | python-apt-ea815d93dda86504518bdf69488b1f336f2439a3.tar.gz | |
python/{depcache.cc,string.cc}: Ignore deprecation warnings for some calls
Those functions are deprecated in APT, but we still need to provide them
for backwards compatibility.
Diffstat (limited to 'python/string.cc')
| -rw-r--r-- | python/string.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/string.cc b/python/string.cc index 62aa34e7..9b02c933 100644 --- a/python/string.cc +++ b/python/string.cc @@ -113,8 +113,10 @@ PyObject *StrStrToTime(PyObject *Self,PyObject *Args) return 0; time_t Result; + PY_APT_BEGIN_DEPRECATED; if (StrToTime(Str,Result) == false) { + PY_APT_END_DEPRECATED; Py_INCREF(Py_None); return Py_None; } |
