Commits

Dan Connolly http://www.w3.org/People/Connolly/  committed b3d68de

OrFilter

  • Participants
  • Parent commits 24d2874

Comments (0)

Files changed (1)

 		return False
 	return True
 
+class OrFilter:
+    def __init__(self, *args):
+	self._parts = args
+
+    def __call__(self, arg):
+	for p in self._parts:
+	    if p(arg):
+		return True
+	return False
+
 class PathFilter:
     """Make a filter function from a class name.