Revision caeffaa0 lib/utils.py

b/lib/utils.py
2125 2125

  
2126 2126
    @type field: str
2127 2127
    @param field: the string to match
2128
    @return: either False or a regular expression match object
2128
    @return: either None or a regular expression match object
2129 2129

  
2130 2130
    """
2131 2131
    for m in itertools.ifilter(None, (val.match(field) for val in self.items)):
2132 2132
      return m
2133
    return False
2133
    return None
2134 2134

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

Also available in: Unified diff