Author: Carl Friedrich Bolz-Tereick <[email protected]>
Branch: py3.6
Changeset: r96960:de29534e71f5
Date: 2019-07-10 15:11 +0200
http://bitbucket.org/pypy/pypy/changeset/de29534e71f5/
Log: no need to call abs twice
diff --git a/pypy/module/math/interp_math.py b/pypy/module/math/interp_math.py
--- a/pypy/module/math/interp_math.py
+++ b/pypy/module/math/interp_math.py
@@ -489,8 +489,8 @@
def gcd(space, w_a, w_b):
"""greatest common divisor of a and b"""
from rpython.rlib import rbigint
- w_a = space.abs(space.index(w_a))
- w_b = space.abs(space.index(w_b))
+ w_a = space.index(w_a)
+ w_b = space.index(w_b)
try:
a = space.int_w(w_a)
b = space.int_w(w_b)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit