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

[tor-commits] [arm/master] fix: Config setter missing list wrapper



commit dc4fd607b78e406cd2fc81beb9e299e2d6aea6a8
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Thu May 19 18:33:34 2011 -0700

    fix: Config setter missing list wrapper
    
    Configuration values are internally stored as lists of values. The setter was
    missing this detail (this is the first time I'm using it...).
---
 src/util/conf.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/util/conf.py b/src/util/conf.py
index 66280c9..bfbf468 100644
--- a/src/util/conf.py
+++ b/src/util/conf.py
@@ -268,7 +268,7 @@ class Config():
     """
     
     self.contentsLock.acquire()
-    self.contents[key] = value
+    self.contents[key] = [value]
     self.contentsLock.release()
   
   def clear(self):



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