commit | 01e4d57b0f07480e37172a0ca12212b8a31ed6f7 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Sat Feb 06 22:27:51 2010 +0000 |
committer | Georg Brandl <georg@python.org> | Sat Feb 06 22:27:51 2010 +0000 |
tree | 89a06b58e46fb74089ef9e4b3dd5bee6d5fe3696 | |
parent | c4a55fccaba4936458c32f5f3b3913fcf2848b42 [diff] [blame] |
Remove Python 1.x or 2.x compatibility code.
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 @@ 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)