Skip to content

Commit 5f71430

Browse files
committed
Remove explicite object-inheritance
1 parent 4a647c9 commit 5f71430

File tree

30 files changed

+42
-42
lines changed

30 files changed

+42
-42
lines changed

easybuild/base/generaloption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ def get_option_by_long_name(self, name):
864864
return None
865865

866866

867-
class GeneralOption(object):
867+
class GeneralOption:
868868
"""
869869
'Used-to-be simple' wrapper class for option parsing
870870

easybuild/base/optcomplete.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class CompleterMissingCallArgument(Exception):
149149
"""Exception to raise when call arg is missing"""
150150

151151

152-
class Completer(object):
152+
class Completer:
153153
"""Base class to derive all other completer classes from.
154154
It generates an empty completion list
155155
"""
@@ -605,7 +605,7 @@ def autocomplete(parser, arg_completer=None, opt_completer=None, subcmd_complete
605605
sys.exit(1)
606606

607607

608-
class CmdComplete(object):
608+
class CmdComplete:
609609

610610
"""Simple default base class implementation for a subcommand that supports
611611
command completion. This class is assuming that there might be a method

easybuild/base/rest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
from easybuild.base import fancylogger
4747

4848

49-
class Client(object):
49+
class Client:
5050
"""An implementation of a REST client"""
5151
DELETE = 'DELETE'
5252
GET = 'GET'
@@ -217,7 +217,7 @@ def get_connection(self, method, url, body, headers):
217217
return connection
218218

219219

220-
class RequestBuilder(object):
220+
class RequestBuilder:
221221
'''RequestBuilder(client).path.to.resource.method(...)
222222
stands for
223223
RequestBuilder(client).client.method('path/to/resource, ...)
@@ -265,7 +265,7 @@ def __repr__(self):
265265
return '%s: %s' % (self.__class__, self.url)
266266

267267

268-
class RestClient(object):
268+
class RestClient:
269269
"""
270270
A client with a request builder, so you can easily create rest requests
271271
e.g. to create a github Rest API client just do

easybuild/framework/easyblock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
_log = fancylogger.getLogger('easyblock')
130130

131131

132-
class EasyBlock(object):
132+
class EasyBlock:
133133
"""Generic support for building and installing software, base class for actual easyblocks."""
134134

135135
# static class method for extra easyconfig parameter definitions

easybuild/framework/easyconfig/easyconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def get_toolchain_hierarchy(parent_toolchain, incl_capabilities=False):
422422
return toolchain_hierarchy
423423

424424

425-
class EasyConfig(object):
425+
class EasyConfig:
426426
"""
427427
Class which handles loading, reading, validation of easyconfigs
428428
"""

easybuild/framework/easyconfig/format/format.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def __init__(self, parent=None, depth=None):
130130
NestedDict.__init__(self, self, 0)
131131

132132

133-
class Squashed(object):
133+
class Squashed:
134134
"""Class to ease the squashing of OrderedVersionOperators and OrderedToolchainVersionOperators"""
135135

136136
def __init__(self):
@@ -184,7 +184,7 @@ def final(self):
184184
return self.result
185185

186186

187-
class EBConfigObj(object):
187+
class EBConfigObj:
188188
"""
189189
Enhanced ConfigObj, version/toolchain and other easyconfig specific aspects aware
190190
@@ -600,7 +600,7 @@ def get_specs_for(self, version=None, tcname=None, tcversion=None):
600600
return res
601601

602602

603-
class EasyConfigFormat(object):
603+
class EasyConfigFormat:
604604
"""EasyConfigFormat class"""
605605
VERSION = EasyVersion('0.0') # dummy EasyVersion instance (shouldn't be None)
606606
USABLE = False # disable this class as usable format

easybuild/framework/easyconfig/format/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __hash__(self):
6565
return hash(tuple(self.version))
6666

6767

68-
class VersionOperator(object):
68+
class VersionOperator:
6969
"""
7070
VersionOperator class represents a version expression that includes an operator.
7171
"""
@@ -614,7 +614,7 @@ def as_dict(self):
614614
return None
615615

616616

617-
class OrderedVersionOperators(object):
617+
class OrderedVersionOperators:
618618
"""
619619
Ordered version operators. The ordering is defined such that one can test from left to right,
620620
and assume that the first matching version operator is the one that is the best match.

easybuild/framework/easyconfig/licenses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
_log = fancylogger.getLogger('easyconfig.licenses', fname=False)
4141

4242

43-
class License(object):
43+
class License:
4444
"""EasyBuild easyconfig license class
4545
This is also the default restrictive license
4646
"""

easybuild/framework/easyconfig/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def fetch_parameters_from_easyconfig(rawtxt, params):
135135
return param_values
136136

137137

138-
class EasyConfigParser(object):
138+
class EasyConfigParser:
139139
"""Read the easyconfig file, return a parsed config object
140140
Can contain references to multiple version and toolchain/toolchain versions
141141
"""

easybuild/framework/easystack.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def check_value(value, context):
6666
raise EasyBuildError(error_msg % format_info)
6767

6868

69-
class EasyStack(object):
69+
class EasyStack:
7070
"""One class instance per easystack. General options + list of all SoftwareSpecs instances"""
7171

7272
def __init__(self):
@@ -90,7 +90,7 @@ def get_general_options(self):
9090
return general_options
9191

9292

93-
class SoftwareSpecs(object):
93+
class SoftwareSpecs:
9494
"""Contains information about every software that should be installed"""
9595

9696
def __init__(self, name, version, versionsuffix, toolchain_version, toolchain_name):
@@ -101,7 +101,7 @@ def __init__(self, name, version, versionsuffix, toolchain_version, toolchain_na
101101
self.versionsuffix = versionsuffix
102102

103103

104-
class EasyStackParser(object):
104+
class EasyStackParser:
105105
"""Parser for easystack files (in YAML syntax)."""
106106

107107
@staticmethod

0 commit comments

Comments
 (0)