Bläddra i källkod

Fix Python3 bug in config.py

oz123 10 år sedan
förälder
incheckning
ae9241055a
1 ändrade filer med 1 tillägg och 1 borttagningar
  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)