def clean_hostname(hostname):
    if hostname:
        return hostname.replace('.local', '')
Remove the .local appendix of a hostname.
dataset/ETHPy150Open pascalw/Airplayer/airplayer/utils.py/clean_hostname