]> granicus.if.org Git - python/commitdiff
Revert temporary debugging commits (r82752, r82754).
authorMark Dickinson <dickinsm@gmail.com>
Fri, 9 Jul 2010 22:12:52 +0000 (22:12 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Fri, 9 Jul 2010 22:12:52 +0000 (22:12 +0000)
Python/pystrtod.c

index 0dea0a6e95de2b4f3447dbbe19918bd632a4d888..f7ddd13d990bce6eed8552cfae2ee12fc41e6c83 100644 (file)
@@ -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;
     }