]> git.itanic.dy.fi Git - emerge-timer/commitdiff
Change variable name
authorEsko Kokkonen <esko.kokkonen@gmail.com>
Sat, 24 Sep 2011 11:32:03 +0000 (14:32 +0300)
committerEsko Kokkonen <esko.kokkonen@gmail.com>
Sat, 24 Sep 2011 11:32:03 +0000 (14:32 +0300)
"string_lenght" -> "version_length". More descriptive names are
better!

emerge-timer.py

index 1d376881cb58b750f43ea95c0058217f979c8cba..5314e75b1b538d73fddbdaf972e08cc174f0811a 100755 (executable)
@@ -95,15 +95,15 @@ class package:
 
         if QUIET == False:
 
-            string_length = 0
+            version_length = 0
             for p in self.versions:
-                if len(p[0]) > string_length:
-                    string_length = len(p[0])
+                if len(p[0]) > version_length:
+                    version_length = len(p[0])
 
             for p in self.versions:
 
                 print('-'*90 + "\n" +
-                      green_start + self.name + (p[0]).ljust(string_length) +
+                      green_start + self.name + (p[0]).ljust(version_length) +
                       color_stop + "  >>>  " + give_time(p[1]) + "  >>>  " +
                       give_date(p[2]))