예제 #1
0
 def find(self, pattern):
     """Find all items that match the given pattern (supporting
     wildcards). Returns a list of keys."""
     return [k for k in self.keys() if wccmp(k, pattern)]
예제 #2
0
파일: util.py 프로젝트: Gustavo6046/omgifol
 def find(self, pattern):
     """Find all items that match the given pattern (supporting
     wildcards). Returns a list of keys."""
     return [k for k in self.keys() if wccmp(k, pattern)]
예제 #3
0
def inwclist(elem, seq):
    return any(wccmp(elem, x) for x in seq)
예제 #4
0
파일: util.py 프로젝트: Gustavo6046/omgifol
def inwclist(elem, seq):
    return any(wccmp(elem, x) for x in seq)