(text)
return None
Detect if text is an environment variable and read it.
    Returns:
        Value/None if successful or not.
Detect if text is an environment variable and read it.
    Returns:
        Value/None if successful or not.
Detect if text is an environment variable and read it . Returns : Value / None if successful or not .
def read_env_var(text):
    """Detect if text is an environment variable and read it.
    Returns:
        Value/None if successful or not.
    """
    if not text:
        return None
    if text[0] == text[-1] == '%':
        return os.getenv(text[1:-1])
    return None
def read_env_var ( text ) : if not text : return None if text [ 0 ] == text [ - 1 ] == '%' : return os . getenv ( text [ 1 : - 1 ] ) return None