[tor-commits] [arm/master] Removing unused dimension arguments

atagar at torproject.org atagar at torproject.org
Fri May 13 05:09:39 UTC 2011


commit 0df2a7b33a3ffc49b1fd38b53aeaa4314d025eba
Author: Damian Johnson <atagar at torproject.org>
Date:   Thu May 12 21:02:14 2011 -0700

    Removing unused dimension arguments
    
    Minor refactoring change suggested by pylint.
---
 src/cli/popups.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/cli/popups.py b/src/cli/popups.py
index b957186..dd56bfa 100644
--- a/src/cli/popups.py
+++ b/src/cli/popups.py
@@ -95,7 +95,7 @@ def showHelpPopup():
   properly, this is an arrow, enter, or scroll key then this returns None.
   """
   
-  popup, width, height = init(9, 80)
+  popup, _, height = init(9, 80)
   if not popup: return
   
   exitKey = None
@@ -172,7 +172,7 @@ def showSortDialog(title, options, oldSelection, optionColors):
     optionColors - mappings of options to their color
   """
   
-  popup, width, height = init(9, 80)
+  popup, _, _ = init(9, 80)
   if not popup: return
   newSelections = []  # new ordering
   
@@ -272,7 +272,7 @@ def showMenu(title, options, oldSelection):
   """
   
   maxWidth = max([len(label) for label in options]) + 9
-  popup, width, height = init(len(options) + 2, maxWidth)
+  popup, _, _ = init(len(options) + 2, maxWidth)
   if not popup: return
   key, selection = 0, oldSelection if oldSelection != -1 else 0
   





More information about the tor-commits mailing list