code formatting

This commit is contained in:
atom3
2021-04-30 00:09:04 +02:00
parent 2e0d5fa707
commit a65a34cfe7
@@ -55,7 +55,6 @@ class facet(metaclass=meta_facet):
try: try:
v = self.node.getElementsByTagName(k)[0] v = self.node.getElementsByTagName(k)[0]
elems = [n for n in v.childNodes if n.nodeType == n.ELEMENT_NODE] elems = [n for n in v.childNodes if n.nodeType == n.ELEMENT_NODE]
if elems: if elems:
return restriction(elems[0]) return restriction(elems[0])
else: else:
@@ -223,8 +222,6 @@ class restriction:
self.options.append(n.getAttribute("value")) self.options.append(n.getAttribute("value"))
self.type = "pattern" self.type = "pattern"
# "Given an instance with %(applicability)s\nWe expect %(requirements)s" % self.__dict__
def __eq__(self, other): def __eq__(self, other):
return other in self.options return other in self.options