diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-07-09 22:12:52 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-07-09 22:12:52 (GMT) |
commit | f719733b7dcd3650ed846aca6ef6f34aeb16c88c (patch) | |
tree | a43a6f53ecc91a45e135c13539be62991157b2e3 /Python | |
parent | 29241eed563cf66439adf6fe6d1e0b5a0e700392 (diff) | |
download | cpython-f719733b7dcd3650ed846aca6ef6f34aeb16c88c.zip cpython-f719733b7dcd3650ed846aca6ef6f34aeb16c88c.tar.gz cpython-f719733b7dcd3650ed846aca6ef6f34aeb16c88c.tar.bz2 |
Revert temporary debugging commits (r82752, r82754).
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pystrtod.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/Python/pystrtod.c b/Python/pystrtod.c index 0dea0a6..f7ddd13 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; } |