diff options
-rw-r--r-- | configobj.py | 2 |
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) |