Fix get_dependants() to raise an Exception instead of a string (Bug 137783)
authorfuzzyray <fuzzyray@gentoo.org>
Thu, 11 Jan 2007 05:05:03 +0000 (05:05 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Thu, 11 Jan 2007 05:05:03 +0000 (05:05 -0000)
svn path=/; revision=337

trunk/src/gentoolkit/package.py

index 87fef28981a7bfd3a427a50621fc2c0979a30978..ffed488c976946d1892b7788169709283246d926 100644 (file)
@@ -67,7 +67,7 @@ class Package:
 
        def get_dependants(self):
                """Retrieves a list of CPVs for all packages depending on this one"""
-               raise "Not implemented yet!"
+               raise NotImplementedError("Not implemented yet!")
 
        def get_runtime_deps(self):
                """Returns a linearised list of first-level run time dependencies for this package, on