brainvisa / brainvisa.github.io

Source of BrainVISA developers site
2 stars 2 forks source link

Get rid of old-style classes #16

Closed ylep closed 4 years ago

ylep commented 4 years ago

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: