Skip to content

Commit d6a0529

Browse files
committed
:@@@@@@@@@@@@@@
1 parent fb5d800 commit d6a0529

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Modules/_ssl.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6849,7 +6849,9 @@ py_ht_errcode_to_name_create(void) {
68496849
}
68506850
PyObject *prev = _Py_hashtable_get(table, key); /* borrowed */
68516851
if (prev != NULL) {
6852-
printf("oh no for: %s (%d, %d)", p->mnemonic, p->library, p->reason);
6852+
PyObject *msg = PyUnicode_FromFormat("oh no for: %s (%d, %d)", p->mnemonic, p->library, p->reason);
6853+
_PyObject_Dump(msg);
6854+
Py_DECREF(msg);
68536855
_PyObject_Dump(prev);
68546856
}
68556857
if (_Py_hashtable_set(table, key, value) < 0) {
@@ -6893,7 +6895,9 @@ py_ht_libcode_to_name_create(void) {
68936895
}
68946896
PyObject *prev = _Py_hashtable_get(table, key); /* borrowed */
68956897
if (prev != NULL) {
6896-
printf("oh no: %s (%d)\n", p->library, p->code);
6898+
PyObject *msg = PyUnicode_FromFormat("oh no: %s (%d)", p->library, p->code);
6899+
_PyObject_Dump(msg);
6900+
Py_DECREF(msg);
68976901
_PyObject_Dump(prev);
68986902
}
68996903
if (_Py_hashtable_set(table, key, value) < 0) {

0 commit comments

Comments
 (0)