MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_win32

Method get_win32

Lib/platform.py:871–877  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

869 return func() or ''
870
871 def get_win32():
872 try:
873 manufacturer, caption = _wmi_query('CPU', 'Manufacturer', 'Caption')
874 except OSError:
875 return os.environ.get('PROCESSOR_IDENTIFIER', _get_machine_win32())
876 else:
877 return f'{caption}, {manufacturer}'
878
879 def get_OpenVMS():
880 try:

Callers

nothing calls this directly

Calls 3

_wmi_queryFunction · 0.85
_get_machine_win32Function · 0.85
getMethod · 0.45

Tested by

no test coverage detected