@staticmethod
    def init(obj, resource_root, attrs=None):
        """Wraper of real constructor

        Wraper around the real constructor to avoid issues with the 'self'
        argument. Call like this, from a subclass's constructor:

         - BaseApiObject.init(self, locals())
        """
        # This works around http://bugs.python.org/issue2646
        # We use unicode strings as keys in kwargs.
        str_attrs = {}
        if attrs:
            for k, v in six.iteritems(attrs):
                if ('self', 'resource_root') not in k:
                    str_attrs[k] = v
        BaseApiObject.__init__(obj, resource_root, **str_attrs)
dataset/ETHPy150Open openstack/sahara/sahara/plugins/cdh/client/types.py/BaseApiObject.init/swapped operands of `not in`