Convert more old-style classes to new-style classes
|Reported by:||Brodie Rao||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
I see long ago, in #2109, someone went through and replaced all usage of old-style classes with new-style classes. It seems there are still old-style classes being defined, so I've gone through and updated those as well.
One thing to note:
__getattr__ defined, but the function assumes that
__getattr__ is called for attributes that already exist, which isn't the case. I've removed the code that looks up existing attributes, since it would never be executed in the first place.
There are also some old-style classes in the copied-over
test._doctest module, which I didn't touch.