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

atagar at torproject.org atagar at torproject.org
Sun Sep 25 21:38:24 UTC 2011


commit 4df31a62dbee86919d8834f84b958507e7112e46
Author: Kamran Riaz Khan <krkhan at inspirated.com>
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()





More information about the tor-commits mailing list