MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / linux_distribution

Function linux_distribution

Lib/platform.py:291–343  ·  view source on GitHub ↗

Tries to determine the name of the Linux OS distribution name. The function first looks for a distribution release file in /etc and then reverts to _dist_try_harder() in case no suitable files are found. supported_dists may be given to define the set of Linux

(distname='', version='', id='',

                       supported_dists=_supported_dists,
                       full_distribution_name=1)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

distFunction · 0.85

Calls 8

_dist_try_harderFunction · 0.85
_parse_release_fileFunction · 0.85
openFunction · 0.70
listdirMethod · 0.45
sortMethod · 0.45
matchMethod · 0.45
readlineMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected