def with_metaclass(Type, skip_attrs=set(['__dict__', '__weakref__'])):
    """Class decorator to set metaclass.

    Works with both Python 3 and Python 3 and it does not add
    an extra class in the lookup order like ``six.with_metaclass`` does
    (that is -- it copies the original class instead of using inheritance).

    """

    def _clone_with_metaclass(Class):
        attrs = dict((key, value) for key, value in items(vars(Class))
                     if skip_attrs not in key)
        return Type(Class.__name__, Class.__bases__, attrs)

    return _clone_with_metaclass
dataset/ETHPy150Open aparo/pyes/pyes/utils/five.py/with_metaclass/swapped operands of `not in`