[tor-commits] [arm/master] Fix invalid or_port type formatting when making labels

atagar at torproject.org atagar at torproject.org
Sat Jun 7 22:25:07 UTC 2014


commit 1113293a533454f1922b1768e5d256a4475e341c
Author: Patrick Mezard <patrick at mezard.eu>
Date:   Sat Jun 7 15:25:19 2014 -0700

    Fix invalid or_port type formatting when making labels
---
 arm/header_panel.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arm/header_panel.py b/arm/header_panel.py
index 0c7e669..41992e4 100644
--- a/arm/header_panel.py
+++ b/arm/header_panel.py
@@ -251,7 +251,7 @@ class HeaderPanel(panel.Panel, threading.Thread):
 
       dir_port_label = ", Dir Port: %s" % self.vals.dir_port if self.vals.dir_port != "0" else ""
 
-      for label in (self.vals.nickname, " - " + my_address, ":" + self.vals.or_port, dir_port_label):
+      for label in (self.vals.nickname, " - " + my_address, ":%s" % self.vals.or_port, dir_port_label):
         if x + len(label) <= left_width:
           self.addstr(1, x, label)
           x += len(label)



More information about the tor-commits mailing list