summaryrefslogtreecommitdiffstats
path: root/Objects/classobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-08-20 19:54:29 (GMT)
committerGuido van Rossum <guido@python.org>1996-08-20 19:54:29 (GMT)
commit89227eb0f50af9c18eaf7d1edc8036d0dd5ccb62 (patch)
treeab681e4f8b1bf67f9437e7d5049d3ec9818fa6e1 /Objects/classobject.c
parent613b943bf9a10c9059699efba4b1d7b91c66da8b (diff)
downloadcpython-89227eb0f50af9c18eaf7d1edc8036d0dd5ccb62.zip
cpython-89227eb0f50af9c18eaf7d1edc8036d0dd5ccb62.tar.gz
cpython-89227eb0f50af9c18eaf7d1edc8036d0dd5ccb62.tar.bz2
Write warning about exception in __del__ to stderr, not stdout.
Diffstat (limited to 'Objects/classobject.c')
-rw-r--r--Objects/classobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c
index 6eb453f..d7be15a 100644
--- a/Objects/classobject.c
+++ b/Objects/classobject.c
@@ -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);