Skip to content

Instantly share code, notes, and snippets.

@ikasamt
Created October 26, 2009 01:53
Show Gist options
  • Save ikasamt/218369 to your computer and use it in GitHub Desktop.
Save ikasamt/218369 to your computer and use it in GitHub Desktop.
config.py of logging module at python2.5 have a little bug in load configration file , this is bugfix patch for that.
*** config_old.py 2009-10-26 10:45:06.000000000 +0900
--- config_new.py 2009-10-26 10:47:58.000000000 +0900
***************
*** 108,113 ****
--- 108,114 ----
if not len(flist):
return {}
flist = string.split(flist, ",")
+ flist = map(lambda x: string.strip(x), flist)
formatters = {}
for form in flist:
sectname = "formatter_%s" % string.strip(form)
***************
*** 136,141 ****
--- 137,143 ----
if not len(hlist):
return {}
hlist = string.split(hlist, ",")
+ hlist = map(lambda x: string.strip(x), hlist)
handlers = {}
fixups = [] #for inter-handler references
for hand in hlist:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment