diff options
author | Rob Dennis <rdennis@gmail.com> | 2014-04-09 20:57:09 -0400 |
---|---|---|
committer | Rob Dennis <rdennis@gmail.com> | 2014-04-09 20:57:09 -0400 |
commit | 62bb181bebeaa084cbeac0bae2a162f974f923a4 (patch) | |
tree | 2ea1616c74bcfa636951dc6584c25b5e1e45894b | |
parent | d9f25251b0dcd1b152a8c553d622099d0899b186 (diff) | |
download | configobj-git-62bb181bebeaa084cbeac0bae2a162f974f923a4.tar.gz |
fixes #44, for real this time
-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) |