summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configobj.py2
1 files changed, 1 insertions, 1 deletions
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)