--- Lib/logging/config.py 2006年06月02日 02:04:26.000000000 +0200 +++ /tmp/config.py 2006年06月14日 08:17:01.607744013 +0200 @@ -109,6 +109,7 @@ flist = string.split(flist, ",") formatters = {} for form in flist: + form = form.strip() sectname = "formatter_%s" % form opts = cp.options(sectname) if "format" in opts: @@ -138,6 +139,7 @@ handlers = {} fixups = [] #for inter-handler references for hand in hlist: + hand = hand.strip() sectname = "handler_%s" % hand klass = cp.get(sectname, "class") opts = cp.options(sectname) @@ -174,7 +176,8 @@ # configure the root first llist = cp.get("loggers", "keys") - llist = string.split(llist, ",") + llist_temp = string.split(llist, ",") + llist = [log.strip() for log in llist_temp] llist.remove("root") sectname = "logger_root" root = logging.root @@ -189,6 +192,7 @@ if len(hlist): hlist = string.split(hlist, ",") for hand in hlist: + hand = hand.strip() log.addHandler(handlers[hand]) #and now the others... @@ -224,6 +228,7 @@ if len(hlist): hlist = string.split(hlist, ",") for hand in hlist: + hand = hand.strip() logger.addHandler(handlers[hand]) #Disable any old loggers. There's no point deleting