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

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



commit 1113293a533454f1922b1768e5d256a4475e341c
Author: Patrick Mezard <patrick@xxxxxxxxx>
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)

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