summaryrefslogtreecommitdiffstats
path: root/Objects/methodobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-06-07 16:10:43 (GMT)
committerGuido van Rossum <guido@python.org>1991-06-07 16:10:43 (GMT)
commit909336104b70cae29c0c4fde4477d508e1d709ac (patch)
tree565a1a5a3aea78eeca3216ab2d95bc74b73286a1 /Objects/methodobject.c
parentdd0108081b1a4b44d712477308b9764139ebc6a2 (diff)
downloadcpython-909336104b70cae29c0c4fde4477d508e1d709ac.zip
cpython-909336104b70cae29c0c4fde4477d508e1d709ac.tar.gz
cpython-909336104b70cae29c0c4fde4477d508e1d709ac.tar.bz2
printobject now returns an error code
Diffstat (limited to 'Objects/methodobject.c')
-rw-r--r--Objects/methodobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/methodobject.c b/Objects/methodobject.c
index 62649f1..46a2f86 100644
--- a/Objects/methodobject.c
+++ b/Objects/methodobject.c
@@ -85,7 +85,7 @@ meth_dealloc(m)
free((char *)m);
}
-static void
+static int
meth_print(m, fp, flags)
methodobject *m;
FILE *fp;
@@ -96,6 +96,7 @@ meth_print(m, fp, flags)
else
fprintf(fp, "<built-in method '%s' of some %s object>",
m->m_name, m->m_self->ob_type->tp_name);
+ return 0;
}
static object *