def _metaclass_lookup_attribute(self, name, context):
attrs = set()<EOL>implicit_meta = self.implicit_metaclass()<EOL>metaclass = self.metaclass()<EOL>for cls in {implicit_meta, metaclass}:<EOL><INDENT>if cls and cls != self and isinstance(cls, ClassDef):<EOL><INDENT>cls_attributes = self._get_attribute_from_metaclass(cls, name, context)<EOL>attrs.update(set(cls_attributes))<EOL><DEDENT><DEDENT>return attrs<EOL>
Search the given name in the implicit and the explicit metaclass.