def from_string_pairs(cls, string_value_pairs, **kwargs):
        """Build an :class:`~.REMap` from str, value pairs by applying
        `re.compile` to each string and calling the __init__ of :class:`~.REMap`
        """
        return cls(re_value_pairs=[(re.compile(s), v)
                                   for s, v in string_value_pairs],
                   **kwargs)
def from_string_pairs ( cls , string_value_pairs , ** kwargs ) : return cls ( re_value_pairs = [ ( re . compile ( s ) , v ) for s , v in string_value_pairs ] , ** kwargs )
Build an :class:`~.REMap` from str, value pairs by applying
        `re.compile` to each string and calling the __init__ of :class:`~.REMap`