[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [arm/release] Minor fix for time units.



commit 4df31a62dbee86919d8834f84b958507e7112e46
Author: Kamran Riaz Khan <krkhan@xxxxxxxxxxxxxx>
Date:   Sun Jul 31 01:07:03 2011 +0500

    Minor fix for time units.
---
 src/util/gtkTools.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/util/gtkTools.py b/src/util/gtkTools.py
index 56a5718..8e8b985 100644
--- a/src/util/gtkTools.py
+++ b/src/util/gtkTools.py
@@ -189,7 +189,7 @@ def input_time(prompt, default=None):
   hBox.pack_end(comboBox, False, False, 0)
 
   if default:
-    if default[:-1] != 's':
+    if default[-1:] != 's':
       default = default + 's'
 
     value, units = default.split()



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits