@classmethod
def from_string(cls, str_or_unicode, file_name=None, save=False):
    """Create a config object from a string.

        :param str_or_unicode: A string representing the file content. This
            will be utf-8 encoded.

        :param file_name: The configuration file path.

        :param _save: Whether the file should be saved upon creation.
        """
    conf = cls(file_name=file_name)
    conf._create_from_string(str_or_unicode, save)
    return conf
