From 62bb181bebeaa084cbeac0bae2a162f974f923a4 Mon Sep 17 00:00:00 2001 From: Rob Dennis Date: Wed, 9 Apr 2014 20:57:09 -0400 Subject: fixes #44, for real this time --- configobj.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configobj.py b/configobj.py index 8ad7c8f..d730a13 100644 --- a/configobj.py +++ b/configobj.py @@ -1234,7 +1234,7 @@ class ConfigObj(Section): self.filename = infile if os.path.isfile(infile): with open(infile, 'rb') as h: - content = h.read() or [] + content = h.readlines() or [] elif self.file_error: # raise an error if the file doesn't exist raise IOError('Config file not found: "%s".' % self.filename) -- cgit v1.2.1