summaryrefslogtreecommitdiff
path: root/apt/__init__.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-03-29 14:22:11 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-03-29 14:22:11 +0200
commit82dc1170b0b29f7bb264d046d1c9253f4d97fb10 (patch)
treefe24df1f2b3c5c1fd3dd4dc171bbfd5d2f8bc694 /apt/__init__.py
parent4f1a8ff1fcd780c2d42dbc59f41ca38581e6f10c (diff)
parent4b74ecd4df220fcb9939445a9774bbcf6ba3212e (diff)
downloadpython-apt-82dc1170b0b29f7bb264d046d1c9253f4d97fb10.tar.gz
If PYTHON_APT_DEPRECATION_WARNINGS is unset, also disable the
deprecation warnings in apt_pkg directly; and don't just disable any deprecation warning in apt/__init__.py (LP: #548623)
Diffstat (limited to 'apt/__init__.py')
-rw-r--r--apt/__init__.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/apt/__init__.py b/apt/__init__.py
index 8b66ad13..a8a8b8fc 100644
--- a/apt/__init__.py
+++ b/apt/__init__.py
@@ -17,11 +17,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-import os
-import warnings
-if not "PYTHON_APT_DEPRECATION_WARNINGS" in os.environ:
- warnings.simplefilter('ignore', DeprecationWarning)
-
# import the core of apt_pkg
"""High-Level Interface for working with apt."""
import apt_pkg