Do not explicitly extend object

This commit is contained in:
Nikita Karamov 2023-01-23 06:45:59 +01:00
parent 1ceeaf11e6
commit d1fd32fd5b
No known key found for this signature in database
GPG key ID: 41D6F71EE78E77CD
5 changed files with 11 additions and 11 deletions

View file

@ -2550,7 +2550,7 @@ class CommandLineUsage(unittest.TestCase):
# stdout: a string representing the combined output to 'stdout'
# stderr: a string representing the combined output to 'stderr'
def _run_scour(self):
class Result(object):
class Result:
pass
result = Result()
@ -2578,7 +2578,7 @@ class CommandLineUsage(unittest.TestCase):
# TODO: can we create file objects that behave *exactly* like the original?
# this is a mess since we have to ensure compatibility across Python 2 and 3 and it seems impossible
# to replicate all the details of 'stdin', 'stdout' and 'stderr'
class InOutBuffer(six.StringIO, object):
class InOutBuffer(six.StringIO):
def write(self, string):
try:
return super(InOutBuffer, self).write(string)