Skip to content

Commit

Permalink
Fix bug in cmath.isclose()
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Quentel committed Nov 15, 2018
1 parent 6830f12 commit 01e7884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/src/Lib/cmath.py
Expand Up @@ -381,7 +381,7 @@ def exp(x):

return complex(_real, _imag)

def isclose(x, y, rel_tol=1e-09, abs_tol=0.0):
def isclose(x, y, *, rel_tol=1e-09, abs_tol=0.0):
rel_tol = float(rel_tol)
abs_tol = float(abs_tol)
return abs(x - y) <= max(rel_tol * max(abs(x), abs(y)), abs_tol)
Expand Down

0 comments on commit 01e7884

Please sign in to comment.