From 4837f4ef174794914fa2deaff2a5fb8f0c7807d9 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 24 Aug 2017 13:43:19 +0200 Subject: [FIX] *: leftover invalid uses of `pycompat` --- odoo/tools/float_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odoo/tools/float_utils.py') diff --git a/odoo/tools/float_utils.py b/odoo/tools/float_utils.py index 93f3c79ef2a..9dc751604c2 100644 --- a/odoo/tools/float_utils.py +++ b/odoo/tools/float_utils.py @@ -77,7 +77,7 @@ def float_round(value, precision_digits=None, precision_rounding=None, rounding_ epsilon = 2**(epsilon_magnitude-53) if rounding_method == 'HALF-UP': normalized_value += math.copysign(epsilon, normalized_value) - rounded_value = pycompat.round(normalized_value) # round to integer + rounded_value = round(normalized_value) # round to integer # TIE-BREAKING: UP (for ceiling operations) # When rounding the value up, we instead subtract the epsilon value -- cgit v1.2.3