From 808906e9af681573f19ddcc9247b7548ddb1290f Mon Sep 17 00:00:00 2001 From: Pablo Astigarraga Date: Mon, 05 Apr 2010 19:57:15 +0000 Subject: minor change in reduce method --- diff --git a/fracciones.activity/fractionlogic.py b/fracciones.activity/fractionlogic.py index 5140936..86c5a3c 100644 --- a/fracciones.activity/fractionlogic.py +++ b/fracciones.activity/fractionlogic.py @@ -82,7 +82,7 @@ class FractionLogic(object): #<--Math methods for the Fraction object begin here--> -def calculate(fraction_1,fraction_2,operator,reduce=False): +def calculate(fraction_1,fraction_2,operator,reduced_output=False): """Calls appropiate method depending on the operator received as an argument""" """Requires 2 fraction objects and a one character string with the operator (+,-,*,/)""" result = ( ) @@ -94,7 +94,7 @@ def calculate(fraction_1,fraction_2,operator,reduce=False): result = multiply(fraction_1,fraction_2) elif operator == "/" : result = divide(fraction_1,fraction_2) - if reduce = False: + if reduced_output = False: return result else: return reduce(result) -- cgit v0.9.1