1. Dan Connolly
  2. quacken

Commits

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

OrFilter

  • Participants
  • Parent commits 24d2874
  • Branches default

Comments (0)

Files changed (1)

File trxtsv.py

View file
  • Ignore whitespace
 		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.