summaryrefslogtreecommitdiffstats
path: root/Lib/logging/config.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-02-06 22:27:51 (GMT)
committerGeorg Brandl <georg@python.org>2010-02-06 22:27:51 (GMT)
commit01e4d57b0f07480e37172a0ca12212b8a31ed6f7 (patch)
tree89a06b58e46fb74089ef9e4b3dd5bee6d5fe3696 /Lib/logging/config.py
parentc4a55fccaba4936458c32f5f3b3913fcf2848b42 (diff)
downloadcpython-01e4d57b0f07480e37172a0ca12212b8a31ed6f7.zip
cpython-01e4d57b0f07480e37172a0ca12212b8a31ed6f7.tar.gz
cpython-01e4d57b0f07480e37172a0ca12212b8a31ed6f7.tar.bz2
Remove Python 1.x or 2.x compatibility code.
Diffstat (limited to 'Lib/logging/config.py')
-rw-r--r--Lib/logging/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/logging/config.py b/Lib/logging/config.py
index d5b82b7..16316a9 100644
--- a/Lib/logging/config.py
+++ b/Lib/logging/config.py
@@ -65,7 +65,7 @@ def fileConfig(fname, defaults=None, disable_existing_loggers=True):
import configparser
cp = configparser.ConfigParser(defaults)
- if hasattr(cp, 'readfp') and hasattr(fname, 'readline'):
+ if hasattr(fname, 'readline'):
cp.readfp(fname)
else:
cp.read(fname)