summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-02-21 09:22:56 +0000
committerZac Medico <zmedico@gentoo.org>2010-02-21 09:22:56 +0000
commita004fce70b50e4216434fd836e8cfd701b7175a5 (patch)
tree2ad594b6289a874f159b2a9e7dc05c61c66be7ec
parentf7608f6f3688a9e10c8ecafc81bac6a154a74a31 (diff)
downloadportage-a004fce70b50e4216434fd836e8cfd701b7175a5.tar.gz
portage-a004fce70b50e4216434fd836e8cfd701b7175a5.tar.bz2
portage-a004fce70b50e4216434fd836e8cfd701b7175a5.zip
Show a deprecation warning when digestParseFile() is called.
svn path=/main/trunk/; revision=15414
-rw-r--r--pym/portage/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 25057f36c..8b9ee3160 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -5469,6 +5469,9 @@ def digestParseFile(myfilename, mysettings=None):
DEPRECATED: this function is now only a compability wrapper for
portage.manifest.Manifest()."""
+ warnings.warn("portage.digestParseFile() is deprecated",
+ DeprecationWarning, stacklevel=2)
+
mysplit = myfilename.split(os.sep)
if mysplit[-2] == "files" and mysplit[-1].startswith("digest-"):
pkgdir = os.sep + os.sep.join(mysplit[:-2]).strip(os.sep)