diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2023-07-05 09:04:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-05 09:04:29 -0500 |
commit | 45838cee0b8b01ad999b459ed6d19e37686859c0 (patch) | |
tree | 3770f840a478598c430081763557b96e766a2a56 /lib/spack/llnl/util/lock.py | |
parent | 95847a0b373d1fe55772ff39d58aa616bec88932 (diff) | |
download | spack-45838cee0b8b01ad999b459ed6d19e37686859c0.tar.gz spack-45838cee0b8b01ad999b459ed6d19e37686859c0.tar.bz2 spack-45838cee0b8b01ad999b459ed6d19e37686859c0.tar.xz spack-45838cee0b8b01ad999b459ed6d19e37686859c0.zip |
Drop Python 2 super syntax (#38718)
Diffstat (limited to 'lib/spack/llnl/util/lock.py')
-rw-r--r-- | lib/spack/llnl/util/lock.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/spack/llnl/util/lock.py b/lib/spack/llnl/util/lock.py index a60b49663e..2b9d2dfbf2 100644 --- a/lib/spack/llnl/util/lock.py +++ b/lib/spack/llnl/util/lock.py @@ -770,7 +770,7 @@ class LockDowngradeError(LockError): def __init__(self, path): msg = "Cannot downgrade lock from write to read on file: %s" % path - super(LockDowngradeError, self).__init__(msg) + super().__init__(msg) class LockLimitError(LockError): @@ -782,7 +782,7 @@ class LockTimeoutError(LockError): def __init__(self, lock_type, path, time, attempts): fmt = "Timed out waiting for a {} lock after {}.\n Made {} {} on file: {}" - super(LockTimeoutError, self).__init__( + super().__init__( fmt.format( lock_type, pretty_seconds(time), @@ -798,7 +798,7 @@ class LockUpgradeError(LockError): def __init__(self, path): msg = "Cannot upgrade lock from read to write on file: %s" % path - super(LockUpgradeError, self).__init__(msg) + super().__init__(msg) class LockPermissionError(LockError): @@ -810,7 +810,7 @@ class LockROFileError(LockPermissionError): def __init__(self, path): msg = "Can't take write lock on read-only file: %s" % path - super(LockROFileError, self).__init__(msg) + super().__init__(msg) class CantCreateLockError(LockPermissionError): @@ -819,4 +819,4 @@ class CantCreateLockError(LockPermissionError): def __init__(self, path): msg = "cannot create lock '%s': " % path msg += "file does not exist and location is not writable" - super(LockError, self).__init__(msg) + super().__init__(msg) |