def _get_mro(obj_class):
if not hasattr(obj_class, '<STR_LIT>'):<EOL><INDENT>try:<EOL><INDENT>obj_class = type(obj_class.__name__, (obj_class, object), {})<EOL><DEDENT>except TypeError:<EOL><INDENT>mro = [obj_class]<EOL><DEDENT>else:<EOL><INDENT>mro = obj_class.__mro__[<NUM_LIT:1>:-<NUM_LIT:1>]<EOL><DEDENT><DEDENT>else:<EOL><INDENT>mro = obj_class.__mro__<EOL><DEDENT>return mro<EOL>
Get a reasonable method resolution order of a class and its superclasses
    for both old-style and new-style classes.