[tor-commits] [stem/master] Minor bug fix.

atagar at torproject.org atagar at torproject.org
Sat Nov 17 19:00:47 UTC 2012


commit 28d6bc73796a46ba0463768a2de35eeb3bc0a1fe
Author: Eoin o Fearghail <eoin.o.fearghail at gmail.com>
Date:   Fri Nov 16 18:57:38 2012 +0000

    Minor bug fix.
    The _get_descriptor_content function was adding whitespace
    to the relay descriptor that it was generating.
    This was incorrect.
---
 test/mocking.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/test/mocking.py b/test/mocking.py
index 66d3017..a3d72b1 100644
--- a/test/mocking.py
+++ b/test/mocking.py
@@ -511,6 +511,8 @@ def _get_descriptor_content(attr = None, exclude = (), header_template = (), foo
       if value is None: continue
       elif value == "":
         content.append(keyword)
+      elif keyword == "onion-key" or keyword == "signing-key" or keyword == "router-signature":
+        content.append("%s%s" % (keyword, value))
       else:
         content.append("%s %s" % (keyword, value))
   





More information about the tor-commits mailing list