[tor-commits] [arm/master] fix: Config setter missing list wrapper
atagar at torproject.org
atagar at torproject.org
Fri May 20 14:45:01 UTC 2011
commit dc4fd607b78e406cd2fc81beb9e299e2d6aea6a8
Author: Damian Johnson <atagar at torproject.org>
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):
More information about the tor-commits
mailing list