From ca74321445bc38561307a4be718968f52490f2e9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 18 Mar 2014 03:33:59 +0100 Subject: add missed return MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/textconf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/textconf b/examples/textconf index 7dcff6f..9f79494 100644 --- a/examples/textconf +++ b/examples/textconf @@ -316,7 +316,7 @@ def t(point): point = [float(p) for p in point.split(':')] while len(point) > 3: point.append(0) - point = sum([v * 60 ** (2 - i) for i, v in enumerate(point)]) + return sum([v * 60 ** (2 - i) for i, v in enumerate(point)]) points = [float(p) if solar_points else t(p) for p in points if p not in ['solar', 'time', 'point']] points = list(enumerate(points)) if reduce_points: -- cgit v1.2.3-70-g09d2