Revision 6c881c52 lib/utils.py

b/lib/utils.py
2413 2413

  
2414 2414
    @type field: str
2415 2415
    @param field: the string to match
2416
    @return: either False or a regular expression match object
2416
    @return: either None or a regular expression match object
2417 2417

  
2418 2418
    """
2419 2419
    for m in itertools.ifilter(None, (val.match(field) for val in self.items)):
2420 2420
      return m
2421
    return False
2421
    return None
2422 2422

  
2423 2423
  def NonMatching(self, items):
2424 2424
    """Returns the list of fields not matching the current set

Also available in: Unified diff