Browse Source

Fix Python3 bug in config.py

oz123 10 năm trước cách đây
mục cha
commit
ae9241055a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      pwman/util/config.py

+ 1 - 1
pwman/util/config.py

@@ -145,7 +145,7 @@ def save(filename=None):
         sectiondict = _conf[key]
         if isinstance(sectiondict, dict):
             for optionkey in sectiondict.keys():
-                parser.set(key, optionkey, sectiondict[optionkey])
+                parser.set(key, optionkey, str(sectiondict[optionkey]))
     try:
         fp = open(filename, "w+")
         parser.write(fp)