Преглед на файлове

Fix Python3 bug in config.py

oz123 преди 10 години
родител
ревизия
ae9241055a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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)