[Python-3000-checkins] r55868 - python/branches/p3yk/Objects/intobject.c
Guido van Rossum
guido at python.org
Mon Jun 11 00:52:05 CEST 2007
No, intobject.c has #if 0 at the top and a matching #endif at the
bottom. I don't know what it hasn't been removed -- Martin?
On 6/10/07, georg.brandl <python-3000-checkins at python.org> wrote:
> Author: georg.brandl
> Date: Mon Jun 11 00:44:39 2007
> New Revision: 55868
>
> Modified:
> python/branches/p3yk/Objects/intobject.c
> Log:
> Missed a place in intobject.c. Is that used anymore anyway?
>
>
> Modified: python/branches/p3yk/Objects/intobject.c
> ==============================================================================
> --- python/branches/p3yk/Objects/intobject.c (original)
> +++ python/branches/p3yk/Objects/intobject.c Mon Jun 11 00:44:39 2007
> @@ -927,11 +927,9 @@
> char buf[100];
> long x = v -> ob_ival;
> if (x < 0)
> - PyOS_snprintf(buf, sizeof(buf), "-0%lo", -x);
> - else if (x == 0)
> - strcpy(buf, "0");
> + PyOS_snprintf(buf, sizeof(buf), "-0o%lo", -x);
> else
> - PyOS_snprintf(buf, sizeof(buf), "0%lo", x);
> + PyOS_snprintf(buf, sizeof(buf), "0o%lo", x);
> return PyString_FromString(buf);
> }
>
> _______________________________________________
> Python-3000-checkins mailing list
> Python-3000-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-3000-checkins
>
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000-checkins
mailing list