@staticmethod
def _list_replace(lst, replace, replacement):
    """
        Replace all values matching values in-line in a list.  Return whether any values were
        replaced.
        """
    replaced = False
    for i, v in enumerate(lst):
        if v == replace:
            lst[i] = replacement
            replaced = True
    return replaced
