@lru_cache()
def get_linux_distribution():
    'Compatibility wrapper for {platform,distro}.linux_distribution().\n    '
    if hasattr(platform, 'linux_distribution'):
        with warnings.catch_warnings():
            warnings.filterwarnings('ignore', category=DeprecationWarning)
            result = platform.linux_distribution()
    else:
        import distro
        result = distro.linux_distribution(full_distribution_name=False)
    return result
Compatibility wrapper for {platform,distro}.linux_distribution().
@lru_cache()
def get_linux_distribution():
    '\n    '
    if hasattr(platform, 'linux_distribution'):
        with warnings.catch_warnings():
            warnings.filterwarnings('ignore', category=DeprecationWarning)
            result = platform.linux_distribution()
    else:
        import distro
        result = distro.linux_distribution(full_distribution_name=False)
    return result