(hostname)
Remove the .local appendix of a hostname.
Remove the .local appendix of a hostname.
Remove the . local appendix of a hostname .
def clean_hostname(hostname):
    """
    Remove the .local appendix of a hostname.
    """
    if hostname:
        return hostname.replace('.local', '')
def clean_hostname ( hostname ) : if hostname : return hostname . replace ( '.local' , '' )