Created
October 26, 2009 01:53
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** 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