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

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



commit ea060119690650b4997c5f4c25f036b3ddeda3ac
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
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)
 

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