Remove inheritance from object base

This commit is contained in:
Grzegorz Bokota
2020-02-04 11:58:52 +01:00
committed by Yannick Jadoul
parent e8d121552c
commit 48055273f1
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ def split_env_items(env_string):
return result
class EnvironmentAssignment(object):
class EnvironmentAssignment:
def __init__(self, assignment):
name, equals, value = assignment.partition('=')
if not equals:
@@ -60,7 +60,7 @@ class EnvironmentAssignment(object):
return '%s=%s' % (self.name, self.value)
class ParsedEnvironment(object):
class ParsedEnvironment:
def __init__(self, assignments):
self.assignments = assignments
+2 -2
View File
@@ -23,7 +23,7 @@ def get_build_verbosity_extra_flags(level):
return []
class BuildSelector(object):
class BuildSelector:
def __init__(self, build_config, skip_config):
self.build_patterns = build_config.split()
self.skip_patterns = skip_config.split()
@@ -38,7 +38,7 @@ class BuildSelector(object):
# Taken from https://stackoverflow.com/a/107717
class Unbuffered(object):
class Unbuffered:
def __init__(self, stream):
self.stream = stream
+1 -1
View File
@@ -7,7 +7,7 @@ import subprocess
from cibuildwheel import linux, macos, windows, util
class ArgsInterceptor(object):
class ArgsInterceptor:
def __call__(self, *args, **kwargs):
self.args = args
self.kwargs = kwargs