def _set_os(self):
    'Collect human readable information about the OS version.\n\n        For Linux it is setting a distribution name and version.\n        '
    (system, node, release, version, machine, processor) = platform.uname()
    if (system == 'Linux'):
        (distribution_name, distribution_number, _) = distro.linux_distribution(full_distribution_name=False)
        distribution_version = ' '.join([distribution_name, distribution_number])
    elif (system == 'Windows'):
        (_release, distribution_version, _csd, _ptype) = platform.win32_ver()
    elif (system == 'Darwin'):
        (distribution_version, _versioninfo, _machine) = platform.mac_ver()
    else:
        distribution_version = release
    self.environment.distribution_version.set(distribution_version)
Collect human readable information about the OS version.

For Linux it is setting a distribution name and version.
def _set_os(self):
    'Collect human readable information about the OS version.\n\n        For Linux it is setting a distribution name and version.\n        '
    (system, node, release, version, machine, processor) = platform.uname()
    if (system == 'Linux'):
        (distribution_name, distribution_number, _) = distro.linux_distribution(full_distribution_name=False)
        distribution_version = ' '.join([distribution_name, distribution_number])
    elif (system == 'Windows'):
        (_release, distribution_version, _csd, _ptype) = platform.win32_ver()
    elif (system == 'Darwin'):
        (distribution_version, _versioninfo, _machine) = platform.mac_ver()
    else:
        distribution_version = release
    self.environment.distribution_version.set(distribution_version)