diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-03-23 19:08:19 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-03-23 19:08:19 +0100 |
| commit | 17e59ce588809971c59a35be1f92816c4c2f895d (patch) | |
| tree | 0d752a45c88af5b577e1c78613186265035badf0 | |
| parent | 36a56f0d7b810858145b1058c72f51eaa76d0d76 (diff) | |
| download | python-apt-17e59ce588809971c59a35be1f92816c4c2f895d.tar.gz | |
apt/__init__.py: use warnings.simplefilter
| -rw-r--r-- | apt/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apt/__init__.py b/apt/__init__.py index 006c1532..8b66ad13 100644 --- a/apt/__init__.py +++ b/apt/__init__.py @@ -20,8 +20,7 @@ import os import warnings if not "PYTHON_APT_DEPRECATION_WARNINGS" in os.environ: - #warnings.simplefilter('ignore', DeprecationWarning) - warnings.filterwarnings('ignore', "", DeprecationWarning, "apt") + warnings.simplefilter('ignore', DeprecationWarning) # import the core of apt_pkg """High-Level Interface for working with apt.""" |
