]> git.itanic.dy.fi Git - emerge-timer/commitdiff
Fix the write function
authorEsko Kokkonen <esko.kokkonen@gmail.com>
Fri, 24 Jun 2011 14:07:28 +0000 (17:07 +0300)
committerEsko Kokkonen <esko.kokkonen@gmail.com>
Fri, 24 Jun 2011 14:07:28 +0000 (17:07 +0300)
Use the actualy variable we are calling in this function instead of
the global variable.

emerge-timer.py

index 9549bdc743f33ddbacf6dc3b33bb9eaf48c3aaab..47aef31b827659a9c4766473e6230da0a69242f5 100755 (executable)
@@ -26,7 +26,7 @@ color_stop = "\033[1;m"
 def write_times(emerge_times_list):
     with open('times', 'w') as g:
 
-        for i in times:
+        for i in emerge_times_list:
             line = str(i[0]) + " " + str(i[1]) + "\n"
             g.write(line)