public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r15414 - main/trunk/pym/portage
@ 2010-02-21  9:22 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2010-02-21  9:22 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2010-02-21 09:22:56 +0000 (Sun, 21 Feb 2010)
New Revision: 15414

Modified:
   main/trunk/pym/portage/__init__.py
Log:
Show a deprecation warning when digestParseFile() is called.


Modified: main/trunk/pym/portage/__init__.py
===================================================================
--- main/trunk/pym/portage/__init__.py	2010-02-21 09:16:58 UTC (rev 15413)
+++ main/trunk/pym/portage/__init__.py	2010-02-21 09:22:56 UTC (rev 15414)
@@ -5469,6 +5469,9 @@
 	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)




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-02-21  9:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-21  9:22 [gentoo-commits] portage r15414 - main/trunk/pym/portage Zac Medico (zmedico)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox