From 5b288f1b67a85bcccc533f101311b1c2c7f2b6eb Mon Sep 17 00:00:00 2001 From: Mats Wichmann Date: Sat, 23 May 2020 07:46:18 -0600 Subject: classes no longer explicitly inherit from object In Python3 this is the default. Signed-off-by: Mats Wichmann --- SCons/Environment.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'SCons/Environment.py') diff --git a/SCons/Environment.py b/SCons/Environment.py index db8af115d..0b4be1b77 100644 --- a/SCons/Environment.py +++ b/SCons/Environment.py @@ -60,7 +60,7 @@ import SCons.Tool import SCons.Util import SCons.Warnings -class _Null(object): +class _Null: pass _null = _Null @@ -191,7 +191,7 @@ def _delete_duplicates(l, keep_last): # BuilderWrapper a subclass that overrides __call__() to enforce specific # Builder calling conventions, simplified some of our higher-layer code. -class MethodWrapper(object): +class MethodWrapper: """ A generic Wrapper class that associates a method (which can actually be any callable) with an object. As part of creating this @@ -334,7 +334,7 @@ def is_valid_construction_var(varstr): -class SubstitutionEnvironment(object): +class SubstitutionEnvironment: """Base class for different flavors of construction environments. This class contains a minimal set of methods that handle construction -- cgit v1.2.1