def _string_type_cast(value):
    """Makes sure a value is already a string.

    Args:
        value: String; value to be type-cast.

    Returns:
        The original value, if it's a string.

    Raises:
        GitRvException: If the value is not a string.
    """
    if not isinstance(value, basestring):
        raise GitRvException('Property must be string. Received %r.' % (value,))
    return value
dataset/ETHPy150Open googlearchive/git-rv/utils.py/_string_type_cast/original