Bug #3126: StreamHandler and FileHandler check before calling "flush" and "close...
commit76231e89e2c52bd1b1a2d178fe2149623565a206
authorvinay.sajip <vinay.sajip@6015fed2-1504-0410-9fe1-9d1591cc4771>
Tue, 17 Jun 2008 11:02:14 +0000 (17 11:02 +0000)
committervinay.sajip <vinay.sajip@6015fed2-1504-0410-9fe1-9d1591cc4771>
Tue, 17 Jun 2008 11:02:14 +0000 (17 11:02 +0000)
treeb2bb31e32c2d9e30abb4cb7908075f7d89ec6317
parent93adb3d2925a4a282673aba018a006d526b7a162
Bug #3126: StreamHandler and FileHandler check before calling "flush" and "close" that the stream object has these, using hasattr (thanks to bobf for the patch).

git-svn-id: http://svn.python.org/projects/python/trunk@64338 6015fed2-1504-0410-9fe1-9d1591cc4771
Lib/logging/__init__.py