mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Write warning about exception in __del__ to stderr, not stdout.
This commit is contained in:
parent
613b943bf9
commit
89227eb0f5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue