summaryrefslogtreecommitdiffstats
path: root/SCons/EnvironmentValues.py
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2020-05-23 13:46:18 (GMT)
committerMats Wichmann <mats@linux.com>2020-05-24 15:27:22 (GMT)
commit5b288f1b67a85bcccc533f101311b1c2c7f2b6eb (patch)
treeadca21d96e435443cbc90985f53f67b85530a6c2 /SCons/EnvironmentValues.py
parent0e76754e652e974f82f975d2cf526d5f7705baab (diff)
downloadSCons-5b288f1b67a85bcccc533f101311b1c2c7f2b6eb.zip
SCons-5b288f1b67a85bcccc533f101311b1c2c7f2b6eb.tar.gz
SCons-5b288f1b67a85bcccc533f101311b1c2c7f2b6eb.tar.bz2
classes no longer explicitly inherit from object
In Python3 this is the default. Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'SCons/EnvironmentValues.py')
-rw-r--r--SCons/EnvironmentValues.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/SCons/EnvironmentValues.py b/SCons/EnvironmentValues.py
index 6599196..aaa71d0 100644
--- a/SCons/EnvironmentValues.py
+++ b/SCons/EnvironmentValues.py
@@ -34,7 +34,7 @@ _separate_args = re.compile(r'(%s|\s+|[^\s$]+|\$)' % _dollar_exps_str)
# space characters in the string result from the scons_subst() function.
_space_sep = re.compile(r'[\t ]+(?![^{]*})')
-class ValueTypes(object):
+class ValueTypes:
"""
Enum to store what type of value the variable holds.
"""
@@ -44,7 +44,7 @@ class ValueTypes(object):
VARIABLE = 3
-class EnvironmentValue(object):
+class EnvironmentValue:
"""
Hold a single value. We're going to cache parsed version of the file
We're going to keep track of variables which feed into this values evaluation
@@ -87,8 +87,7 @@ class EnvironmentValue(object):
pass
-
-class EnvironmentValues(object):
+class EnvironmentValues:
"""
A class to hold all the environment variables
"""