summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2018-07-18 20:23:59 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2018-07-25 23:10:10 -0700
commit6837da2ad7730e96ee0560df7f0bc2b4c7f71f40 (patch)
tree699dbf522095797ca36d4d1b24bdc94b905c7233 /lib
parent498d8cf04b6c932d8c224c7b3b9f696fd7dd3e27 (diff)
downloadspack-6837da2ad7730e96ee0560df7f0bc2b4c7f71f40.tar.gz
spack-6837da2ad7730e96ee0560df7f0bc2b4c7f71f40.tar.bz2
spack-6837da2ad7730e96ee0560df7f0bc2b4c7f71f40.tar.xz
spack-6837da2ad7730e96ee0560df7f0bc2b4c7f71f40.zip
style: clean up exception definitions in package.py
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/package.py9
1 files changed, 2 insertions, 7 deletions
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." % (