Commit 645a22e0 authored by Guido van Rossum's avatar Guido van Rossum

As Neal pointed out, bool_print was an order of magnitude too complex.

parent b5080abb
......@@ -7,18 +7,7 @@
static int
bool_print(PyBoolObject *self, FILE *fp, int flags)
{
if (flags & Py_PRINT_RAW) {
if (self->ob_ival == 0)
fputs("False", fp);
else
fputs("True", fp);
}
else {
if (self->ob_ival == 0)
fputs("False", fp);
else
fputs("True", fp);
}
fputs(self->ob_ival == 0 ? "False" : "True", fp);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment