Show More
@@ -170,5 +170,8 b' class config(object):' | |||
|
170 | 170 | def read(self, path, fp=None, sections=None, remap=None): |
|
171 | 171 | if not fp: |
|
172 | 172 | fp = util.posixfile(path, 'rb') |
|
173 | assert getattr(fp, 'mode', r'rb') == r'rb', ( | |
|
174 | 'config files must be opened in binary mode, got fp=%r mode=%r' % ( | |
|
175 | fp, fp.mode)) | |
|
173 | 176 | self.parse(path, fp.read(), |
|
174 | 177 | sections=sections, remap=remap, include=self.read) |
General Comments 0
You need to be logged in to leave comments.
Login now