[tor-commits] [stem/master] Presently no quoted GETCONF responses exist

atagar at torproject.org atagar at torproject.org
Sat Mar 23 23:28:23 UTC 2013


commit ea060119690650b4997c5f4c25f036b3ddeda3ac
Author: Damian Johnson <atagar at torproject.org>
Date:   Sat Mar 23 16:24:47 2013 -0700

    Presently no quoted GETCONF responses exist
    
    As per ticket #6172 the GETCONF response currently returns each result on a
    separate line, so quotes are unnecessary. If tor does add quoted values then
    we'll need to see at that time how it should be handled.
---
 stem/response/getconf.py |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/stem/response/getconf.py b/stem/response/getconf.py
index 9cebce9..dc44440 100644
--- a/stem/response/getconf.py
+++ b/stem/response/getconf.py
@@ -43,13 +43,8 @@ class GetConfResponse(stem.response.ControlMessage):
     while remaining_lines:
       line = remaining_lines.pop(0)
 
-      if line.is_next_mapping(quoted = False):
+      if line.is_next_mapping():
         key, value = line.split("=", 1)
-      elif line.is_next_mapping(quoted = True):
-        # TODO: doesn't seem to occur yet in practice...
-        # https://trac.torproject.org/6172
-
-        key, value = line.pop_mapping(True).items()[0]
       else:
         key, value = (line.pop(), None)
 



More information about the tor-commits mailing list