Mercurial > skaapsteker
diff skaapsteker/utils.py @ 632:0675f390653c
Initial port to Python 3 and Pygame 2.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Fri, 20 Jan 2023 20:01:06 +0100 |
parents | 35919d12b792 |
children |
line wrap: on
line diff
--- a/skaapsteker/utils.py Tue Mar 17 22:40:45 2020 +0200 +++ b/skaapsteker/utils.py Fri Jan 20 20:01:06 2023 +0100 @@ -25,7 +25,7 @@ cadd = mk_cop(operator.add) csub = mk_cop(operator.sub) cmul = mk_cop(operator.mul) -cdiv = mk_cop(operator.div) +cdiv = mk_cop(operator.truediv) cclamp = mk_cop(lambda a, b: max(min(a, b), -b)) cabsmax = mk_cop(lambda a, b: a if abs(a) > abs(b) else b) @@ -52,4 +52,3 @@ if abs(x_projection) < abs(y_projection): return (x_projection, 0) return (0, y_projection) -