[or-cvs] bugfix: set_options takes a list of key-value pairs

Geoffrey Goodell goodell at seul.org
Tue Nov 15 20:34:03 UTC 2005


Update of /home/or/cvsroot/control/python
In directory moria:/tmp/cvs-serv24152

Modified Files:
	TorCtl1.py 
Log Message:
bugfix: set_options takes a list of key-value pairs


Index: TorCtl1.py
===================================================================
RCS file: /home/or/cvsroot/control/python/TorCtl1.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- TorCtl1.py	12 Nov 2005 21:42:27 -0000	1.9
+++ TorCtl1.py	15 Nov 2005 20:34:01 -0000	1.10
@@ -253,7 +253,7 @@
     def set_option(self, key, value):
         """Set the value of the configuration option 'key' to the value 'value'.
         """
-        self.set_options([key, value])
+        self.set_options([[key, value]])
 
     def set_options(self, kvlist):
         """Given a list of (key,value) pairs, set them as configuration



More information about the tor-commits mailing list