summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-02-26 15:26:56 (GMT)
committerGuido van Rossum <guido@python.org>1992-02-26 15:26:56 (GMT)
commit444db07d3cb58e2161bb1e314eb0a4d8137ff64c (patch)
treeb4f109ab83f5838884df784b54be678c50cebc96 /Modules
parent4fe872988b3dd9edf004160c44076df839f14516 (diff)
downloadcpython-444db07d3cb58e2161bb1e314eb0a4d8137ff64c.zip
cpython-444db07d3cb58e2161bb1e314eb0a4d8137ff64c.tar.gz
cpython-444db07d3cb58e2161bb1e314eb0a4d8137ff64c.tar.bz2
Get rid of RuntimeError.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/mathmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
index 03b0705..e6decaa 100644
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -55,7 +55,7 @@ math_error()
else if (errno == ERANGE)
err_setstr(OverflowError, "math range error");
else
- err_errno(RuntimeError);
+ err_errno(ValueError); /* Unexpected math error */
return NULL;
}