[tor-commits] [nyx/master] Drop redraw() block argument

atagar at torproject.org atagar at torproject.org
Mon Feb 15 14:45:09 UTC 2016


commit d281f04f7404290a0ef2fb4bba1f5d8fb515faf8
Author: Damian Johnson <atagar at torproject.org>
Date:   Sun Feb 14 15:58:41 2016 -0800

    Drop redraw() block argument
    
    Unused argument for concurrent use.
---
 nyx/util/panel.py | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/nyx/util/panel.py b/nyx/util/panel.py
index 611a14d..10727c8 100644
--- a/nyx/util/panel.py
+++ b/nyx/util/panel.py
@@ -456,16 +456,13 @@ class Panel(object):
 
     pass
 
-  def redraw(self, force_redraw=False, block=False):
+  def redraw(self, force_redraw=False):
     """
     Clears display and redraws its content. This can skip redrawing content if
     able (ie, the subwindow's unchanged), instead just refreshing the display.
 
     Arguments:
       force_redraw - forces the content to be cleared and redrawn if true
-      block       - if drawing concurrently with other panels this determines
-                    if the request is willing to wait its turn or should be
-                    abandoned
     """
 
     # skipped if not currently visible or activity has been halted
@@ -498,7 +495,7 @@ class Panel(object):
 
     self.max_y, self.max_x = subwin_max_y, subwin_max_x
 
-    if not CURSES_LOCK.acquire(block):
+    if not CURSES_LOCK.acquire(False):
       return
 
     try:





More information about the tor-commits mailing list