summaryrefslogtreecommitdiff
path: root/apt/__init__.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-08-04 11:56:22 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-08-04 11:56:22 +0000
commit4091ce520a94963d624348d627004e2e7339fc00 (patch)
tree5b3972261a18be50b7fa80278de27b92f59c051d /apt/__init__.py
parent6a8d39c2770b9640a51d8d8d8fed10e65e5d2336 (diff)
downloadpython-apt-4091ce520a94963d624348d627004e2e7339fc00.tar.gz
* make the change to the property more clean (thanks to jamesh for his tips)
Diffstat (limited to 'apt/__init__.py')
-rw-r--r--apt/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/apt/__init__.py b/apt/__init__.py
index e043261c..eb4e3268 100644
--- a/apt/__init__.py
+++ b/apt/__init__.py
@@ -14,4 +14,6 @@ apt_pkg.init()
if not os.environ.has_key("PYTHON_APT_API_NOT_STABLE"):
- sys.stderr.write("WARNING: Use \"import apt\" at our own risk, the API is not stable yet\n")
+ import warnings
+ warnings.warn("Module apt is 100% API stable yet; ", FutureWarning)
+ del warnings