From 6837da2ad7730e96ee0560df7f0bc2b4c7f71f40 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Wed, 18 Jul 2018 20:23:59 -0700 Subject: style: clean up exception definitions in package.py --- lib/spack/spack/package.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'lib') diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py index 22d986a6d5..cb4a6e1ac3 100644 --- a/lib/spack/spack/package.py +++ b/lib/spack/spack/package.py @@ -2280,7 +2280,6 @@ class ExternalPackageError(InstallError): class PackageStillNeededError(InstallError): """Raised when package is still needed by another on uninstall.""" - def __init__(self, spec, dependents): super(PackageStillNeededError, self).__init__("Cannot uninstall %s" % spec) @@ -2290,14 +2289,12 @@ class PackageStillNeededError(InstallError): class PackageError(spack.error.SpackError): """Raised when something is wrong with a package definition.""" - def __init__(self, message, long_msg=None): super(PackageError, self).__init__(message, long_msg) class PackageVersionError(PackageError): """Raised when a version URL cannot automatically be determined.""" - def __init__(self, version): super(PackageVersionError, self).__init__( "Cannot determine a URL automatically for version %s" % version, @@ -2313,19 +2310,17 @@ class NoURLError(PackageError): class ExtensionError(PackageError): - - pass + """Superclass for all errors having to do with extension packages.""" class ActivationError(ExtensionError): - + """Raised when there are problems activating an extension.""" def __init__(self, msg, long_msg=None): super(ActivationError, self).__init__(msg, long_msg) class DependencyConflictError(spack.error.SpackError): """Raised when the dependencies cannot be flattened as asked for.""" - def __init__(self, conflict): super(DependencyConflictError, self).__init__( "%s conflicts with another file in the flattened directory." % ( -- cgit v1.2.3-60-g2f50