Show a deprecation warning when digestParseFile() is called.
authorZac Medico <zmedico@gentoo.org>
Sun, 21 Feb 2010 09:22:56 +0000 (09:22 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 21 Feb 2010 09:22:56 +0000 (09:22 -0000)
svn path=/main/trunk/; revision=15414

pym/portage/__init__.py

index 25057f36c278d1e6b6d2c2ce10e9378230918450..8b9ee31608412a59b57e50e1b01b92c22b3537e6 100644 (file)
@@ -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)