def _get_class(obj):
    try:
        return obj.__class__
    except __HOLE__:
        # in Python 2, _sre.SRE_Pattern objects have no __class__
        return type(obj)
dataset/ETHPy150Open sibson/vncdotool/tests/unit/mock.py/_get_class