[tor-commits] [depictor/master] If no protocol is specified in both the vote and consensus, do not write it in red.

tom at torproject.org tom at torproject.org
Sat Apr 17 03:07:06 UTC 2021


commit 205f87724745e8999bdfc5c67807e585af500359
Author: Tom Ritter <tom at ritter.vg>
Date:   Fri Apr 16 22:53:22 2021 -0400

    If no protocol is specified in both the vote and consensus, do not write it in red.
---
 website.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/website.py b/website.py
index e19d341..6637773 100755
--- a/website.py
+++ b/website.py
@@ -979,13 +979,13 @@ class WebsiteWriter:
 		s = ""
 		for k in keys:
 			s += k + "="
-			if c and (k not in v or k not in c or c[k] != v[k]):
+			if c and c.get(k, None) != v.get(k, None):
 				s += "<span class=\"oiv\">"
 			if k in v:
 				s += ",".join([str(i) for i in v[k]])
 			else:
 				s += "(none)"
-			if c and (k not in v or k not in c or c[k] != v[k]):
+			if c and c.get(k, None) != v.get(k, None):
 				s += "</span>"
 			s += " "
 		return s





More information about the tor-commits mailing list