diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-08-05 09:09:57 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-08-05 09:09:57 +0000 |
| commit | f3899ebe6f019defa87ceb10f704bccd64948d30 (patch) | |
| tree | e289cf181cb652cf54cb4087f5e57aefc8953671 /apt/__init__.py | |
| parent | 2df9d3b54b997286da17564c17a46b5a444eda8b (diff) | |
| download | python-apt-f3899ebe6f019defa87ceb10f704bccd64948d30.tar.gz | |
* FutureWarning is added, example how to filter it away too. README.apt added
Diffstat (limited to 'apt/__init__.py')
| -rw-r--r-- | apt/__init__.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apt/__init__.py b/apt/__init__.py index 2a478b34..15df6990 100644 --- a/apt/__init__.py +++ b/apt/__init__.py @@ -13,7 +13,6 @@ from apt_pkg import SizeToStr, TimeToStr, VersionCompare apt_pkg.init() -if not os.environ.has_key("PYTHON_APT_API_NOT_STABLE"): - import warnings - warnings.warn("Module apt is 100% API stable yet; ", FutureWarning) - del warnings +import warnings +warnings.warn("apt API not stable yet", FutureWarning) +del warnings |
