Lines Matching defs:sys
7 import sys
13 MS_WINDOWS = (sys.platform == 'win32')
37 # convert other objects like sys.flags to string
111 copy_attributes(info_add, sys, 'sys.%s', attributes)
113 call_func(info_add, 'sys.androidapilevel', sys, 'getandroidapilevel')
114 call_func(info_add, 'sys.windowsversion', sys, 'getwindowsversion')
116 encoding = sys.getfilesystemencoding()
117 if hasattr(sys, 'getfilesystemencodeerrors'):
118 encoding = '%s/%s' % (encoding, sys.getfilesystemencodeerrors())
119 info_add('sys.filesystem_encoding', encoding)
122 stream = getattr(sys, name)
131 info_add('sys.%s.encoding' % name, encoding)
134 Py_DEBUG = hasattr(sys, 'gettotalrefcount')
136 text = 'Yes (sys.gettotalrefcount() present)'
138 text = 'No (sys.gettotalrefcount() missing)'
142 Py_TRACE_REFS = hasattr(sys, 'getobjects')
144 text = 'Yes (sys.getobjects() present)'
146 text = 'No (sys.getobjects() missing)'
593 if sys.platform != "wasi":
782 dll_path = _winapi.GetModuleFileName(sys.dllhandle)
840 with open("/proc/sys/crypto/fips_enabled", encoding="utf-8") as fp:
896 file=sys.stderr)
897 traceback.print_exc(file=sys.stderr)
898 print(file=sys.stderr)
899 sys.stderr.flush()
924 print("Collection failed: exit with error", file=sys.stderr)
925 sys.exit(1)