consistant hasattr in readconf

This commit is contained in:
Clay Gerrard
2011-02-25 14:22:56 -06:00
parent bdba519e02
commit 0d6e2bbab0

View File

@@ -748,7 +748,7 @@ def readconf(conf, section_name=None, log_name=None, defaults=None):
if defaults is None:
defaults = {}
c = ConfigParser(defaults)
if hasattr(conf, 'read'):
if hasattr(conf, 'readline'):
c.readfp(conf)
else:
if not c.read(conf):