Replace uses of twisted.python.reflect.allYourBase with inspect.getmro
|Reported by:||Jean-Paul Calderone||Owned by:||lvh|
branch-diff, diff-cov, branch-cov, buildbot
Description (last modified by )
These functions are not exactly the same, but the switch should be pretty easy in most cases.
getmro is several times faster than
allYourBase because it knows about
__mro__. It also takes care of duplication in a diamond inheritance hierarchy, which at least one caller of
allYourBase doesn't realize it cares about (
Failure doesn't break because of the duplication, but it ends up doing extra work).
Maybe we can eventually deprecate
Change History (22)
comment:17 Changed 6 years ago by
|Owner:||changed from Calvin Spealman to lvh|
|Status:||new → assigned|