Quellcode durchsuchen

Fix Python3 bug in config.py

oz123 vor 10 Jahren
Ursprung
Commit
ae9241055a
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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)