def getmro(cls):
 if hasattr(cls, '__mro__'):
  return cls.__mro__
 else:
  result = []
  _searchbases(cls, result)
  return tuple(result)

def getmro ( cls ) : if hasattr ( cls , '__mro__' ) : return cls . __mro__ else : result = [ ] _searchbases ( cls , result ) return tuple ( result )
return tuple of base classes in method resolution order .