projects
/
mdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f857b6a
)
Fix loss of variable type in config set
author
Frederic Massart
<fred@moodle.com>
Mon, 9 Sep 2013 07:08:22 +0000
(15:08 +0800)
committer
Frederic Massart
<fred@moodle.com>
Mon, 9 Sep 2013 07:08:22 +0000
(15:08 +0800)
lib/config.py
patch
|
blob
|
history
diff --git
a/lib/config.py
b/lib/config.py
index
1405d42
..
1836096
100644
(file)
--- a/
lib/config.py
+++ b/
lib/config.py
@@
-125,7
+125,8
@@
class ConfigObject(object):
def set(self, name, value):
"""Set a new setting"""
- value = unicode(value)
+ if type(value) == str:
+ value = unicode(value)
name = unicode(name).split('.')
count = len(name)
data = self.data