Write warning about exception in __del__ to stderr, not stdout.
This commit is contained in:
parent
613b943bf9
commit
89227eb0f5
|
@ -399,7 +399,7 @@ instance_dealloc(inst)
|
||||||
DECREF(del);
|
DECREF(del);
|
||||||
if (res == NULL) {
|
if (res == NULL) {
|
||||||
writestring("exception in __del__ method ignored\n",
|
writestring("exception in __del__ method ignored\n",
|
||||||
sysget("stdout"));
|
sysget("stderr"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
DECREF(res);
|
DECREF(res);
|
||||||
|
|
Loading…
Reference in New Issue