mirror of
https://github.com/python/cpython.git
synced 2025-09-29 19:56:59 +00:00
(cherry picked from commit afd055a59f
)
This commit is contained in:
parent
8a957534f5
commit
d5c71b0c98
1 changed files with 8 additions and 0 deletions
|
@ -115,6 +115,14 @@ def collect_sys(info_add):
|
||||||
encoding = '%s/%s' % (encoding, errors)
|
encoding = '%s/%s' % (encoding, errors)
|
||||||
info_add('sys.%s.encoding' % name, encoding)
|
info_add('sys.%s.encoding' % name, encoding)
|
||||||
|
|
||||||
|
# Were we compiled --with-pydebug or with #define Py_DEBUG?
|
||||||
|
Py_DEBUG = hasattr(sys, 'gettotalrefcount')
|
||||||
|
if Py_DEBUG:
|
||||||
|
text = 'Yes (sys.gettotalrefcount() present)'
|
||||||
|
else:
|
||||||
|
text = 'No (sys.gettotalrefcount() missing)'
|
||||||
|
info_add('Py_DEBUG', text)
|
||||||
|
|
||||||
|
|
||||||
def collect_platform(info_add):
|
def collect_platform(info_add):
|
||||||
import platform
|
import platform
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue