From 4091ce520a94963d624348d627004e2e7339fc00 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 4 Aug 2005 11:56:22 +0000 Subject: * make the change to the property more clean (thanks to jamesh for his tips) --- apt/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apt/__init__.py') 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 -- cgit v1.2.3