fix default arguments of mathutitls.clamp

This commit is contained in:
tiwo 2017-06-18 14:55:14 +02:00
parent 230b856dc3
commit 4bae3f5589
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ from math import ceil as _ceil, floor as _floor
import bisect
def clamp(x, lower=None, upper=None):
def clamp(x, lower=float('-inf'), upper=float('inf')):
"""Limit a value to a given range.
Args: