Mercurial > hg > config
comparison python/simpleini.py @ 114:9b193312ceba
actually, we *do* want to write into the dict!
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Thu, 02 Dec 2010 16:25:26 -0800 |
| parents | 44534594f402 |
| children | c499f5a598cf |
comparison
equal
deleted
inserted
replaced
| 113:44534594f402 | 114:9b193312ceba |
|---|---|
| 14 - strict : whether to be strict about parsing | 14 - strict : whether to be strict about parsing |
| 15 """ | 15 """ |
| 16 | 16 |
| 17 if variables is None: | 17 if variables is None: |
| 18 variables = {} | 18 variables = {} |
| 19 variables = variables.copy() # no reason to overwrite the originals | |
| 20 | 19 |
| 21 if isinstance(fp, basestring): | 20 if isinstance(fp, basestring): |
| 22 fp = file(fp) | 21 fp = file(fp) |
| 23 | 22 |
| 24 sections = [] | 23 sections = [] |
