From: Mark Dickinson Date: Fri, 9 Jul 2010 22:12:52 +0000 (+0000) Subject: Revert temporary debugging commits (r82752, r82754). X-Git-Tag: v3.1.3rc1~533 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f719733b7dcd3650ed846aca6ef6f34aeb16c88c;p=python Revert temporary debugging commits (r82752, r82754). --- diff --git a/Python/pystrtod.c b/Python/pystrtod.c index 0dea0a6e95..f7ddd13d99 100644 --- a/Python/pystrtod.c +++ b/Python/pystrtod.c @@ -1001,17 +1001,9 @@ format_float_short(double d, char format_code, else { /* shouldn't get here: Gay's code should always return something starting with a digit, an 'I', or 'N' */ - printf("Unexpected failure in format_float_short. " - "Arguments: d = %.17g, format_code = %d, " - "mode = %d, precision = %ld\n", - d, format_code, mode, precision); - printf("digits == %.100s\n", digits); - PyErr_Format(PyExc_RuntimeError, - "Unexpected failure in format_float_short. " - "Arguments: d = %.17g, format_code = %d, " - "mode = %d, precision = %ld\n", - d, format_code, mode, precision); - return NULL; + strncpy(p, "ERR", 3); + p += 3; + assert(0); } goto exit; }