0
0
mirror of https://github.com/python/cpython.git synced 2024-11-28 08:20:55 +01:00

Write warning about exception in __del__ to stderr, not stdout.

This commit is contained in:
Guido van Rossum 1996-08-20 19:54:29 +00:00
parent 613b943bf9
commit 89227eb0f5

View File

@ -399,7 +399,7 @@ instance_dealloc(inst)
DECREF(del);
if (res == NULL) {
writestring("exception in __del__ method ignored\n",
sysget("stdout"));
sysget("stderr"));
}
else
DECREF(res);