Pārlūkot izejas kodu

small bug fix of how isinstance being called

oz123 11 gadi atpakaļ
vecāks
revīzija
6528b6693b
2 mainītis faili ar 1 papildinājumiem un 6 dzēšanām
  1. 0 5
      pwman/ui/cli.py
  2. 1 1
      pwman/util/config.py

+ 0 - 5
pwman/ui/cli.py

@@ -71,12 +71,7 @@ class PwmanCliOld(cmd.Cmd, HelpUI, BaseUI):
 
     def do_exit(self, args):
         """exit the ui"""
-        print
-        # try:
-        #    print "goodbye"
         self._db.close()
-        # except DatabaseException, e:
-        #    self.error(e)
         return True
 
     def get_ids(self, args):

+ 1 - 1
pwman/util/config.py

@@ -125,7 +125,7 @@ def save(filename=None):
         if not parser.has_section(key):
             parser.add_section(key)
         sectiondict = _conf[key]
-        if isinstance(dict, sectiondict):
+        if isinstance(sectiondict, dict):
             for optionkey in sectiondict.keys():
                 parser.set(key, optionkey, sectiondict[optionkey])
     try: