def get_distribution_version():
 if (platform.system() == 'Linux'):
  try:
   distribution_version = platform.linux_distribution()[1]
   if ((not distribution_version) and os.path.isfile('/etc/system-release')):
    distribution_version = platform.linux_distribution(supported_dists=['system'])[1]
  except:
   distribution_version = platform.dist()[1]
 else:
  distribution_version = None
 return distribution_version

def get_distribution_version ( ) : if ( platform . system ( ) == 'Linux' ) : try : distribution_version = platform . linux_distribution ( ) [ 1 ] if ( ( not distribution_version ) and os . path . isfile ( '/etc/system-release' ) ) : distribution_version = platform . linux_distribution ( supported_dists = [ 'system' ] ) [ 1 ] except : distribution_version = platform . dist ( ) [ 1 ] else : distribution_version = None return distribution_version
return the distribution version .