From 9824b374b2a075304a17212179b568db581a9c1c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 19 Feb 2014 01:37:10 +0100 Subject: only parse times once MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/comprehensive | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/comprehensive b/examples/comprehensive index 653cd8b..e1c045e 100644 --- a/examples/comprehensive +++ b/examples/comprehensive @@ -18,6 +18,7 @@ def by_time(): ''' Dayness calculation using time ''' + global time_alpha if isinstance(time_alpha[0][0], str): for i in range(len(time_alpha)): hh = [float(x) for x in time_alpha[i][0].split(':')] -- cgit v1.2.3-70-g09d2