Skip to content
Permalink
Browse files
Minor bug fix.
The _get_descriptor_content function was adding whitespace
to the relay descriptor that it was generating.
This was incorrect.
  • Loading branch information
eoinof committed Nov 16, 2012
1 parent 0e99a26 commit c9663bf5f2639fee7867f418ddeadd614f4e4cdb
Showing with 2 additions and 0 deletions.
  1. +2 −0 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))

0 comments on commit c9663bf

Please sign in to comment.