Remove unnecessary object from class definitions

In Python 3, all classes are new-style classes. The object in the
definition is redundant and unnecessary.
This commit is contained in:
Jon Dufresne
2018-09-11 06:48:35 -07:00
parent 844a3a5c22
commit 490e4aed41
70 changed files with 115 additions and 116 deletions

View File

@@ -223,7 +223,7 @@ class ExampleError(Exception):
self.code = code
class ExampleClass(object):
class ExampleClass:
"""The summary line for a class docstring should fit on one line.
If the class has public attributes, they may be documented here