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

Function _syscmd_ver

Lib/platform.py:482–532  ·  view source on GitHub ↗

Tries to figure out the OS version used and returns a tuple (system,release,version). It uses the "ver" shell command for this which is known to exists on Windows, DOS and OS/2. XXX Others too ? In case this fails, the given parameters are used as defaults.

(system='', release='', version='',

               supported_platforms=('win32','win16','dos','os2'))

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

unameFunction · 0.85

Calls 6

_norm_versionFunction · 0.85
stripMethod · 0.80
popenFunction · 0.70
readMethod · 0.45
closeMethod · 0.45
matchMethod · 0.45

Tested by

no test coverage detected