From 9d3ba8d8005ca2f96dd752160cf6b29356b1bdb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 13 Jan 2014 16:37:31 +0100 Subject: [PATCH] Clean inaccurate docstring --- currency.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/currency.py b/currency.py index 05afa36f36..81f7518abd 100644 --- a/currency.py +++ b/currency.py @@ -187,16 +187,7 @@ class Currency(ModelSQL, ModelView): return res def round(self, amount, rounding=ROUND_HALF_EVEN): - ''' - Round the amount depending of the currency - - :param cursor: the database cursor - :param user: the user id - :param currency: a BrowseRecord of currency.currency - :param amout: a Decimal - :param rounding: the rounding option - :return: a Decimal - ''' + 'Round the amount depending of the currency' return (amount / self.rounding).quantize(Decimal('1.'), rounding=rounding) * self.rounding