def FilterFixture(fixture=None, regex='.'):
 result = []
 regex = re.compile(regex)
 if (fixture is None):
  fixture = client_fixture.VFS
 for (path, attributes) in fixture:
  if regex.match(path):
   result.append((path, attributes))
 return result

def FilterFixture ( fixture = None , regex = '.' ) : result = [ ] regex = re . compile ( regex ) if ( fixture is None ) : fixture = client_fixture . VFS for ( path , attributes ) in fixture : if regex . match ( path ) : result . append ( ( path , attributes ) ) return result
returns a sub fixture by only returning objects which match the regex .