Old-style classes are classes that do not inherit from object. In Python 3 every class is new-style, because classes implicitly inherit from object.
In order to get a consistent behaviour across Python 2 and Python 3, all old-style classes should be changed to inherit from object. Old-style classes can be detected by the hacking flake8 plugin (flake8 --select=H238 .).
Projects that need to be checked for old-style classes:
Old-style classes are classes that do not inherit from
object
. In Python 3 every class is new-style, because classes implicitly inherit fromobject
.In order to get a consistent behaviour across Python 2 and Python 3, all old-style classes should be changed to inherit from
object
. Old-style classes can be detected by the hacking flake8 plugin (flake8 --select=H238 .
).Projects that need to be checked for old-style classes: