Mercurial > public > mercurial-scm > hg-stable
diff mercurial/config.py @ 13664:53db4e2026ab
config: use util.posixfile
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Wed, 16 Mar 2011 18:48:59 +0100 |
parents | 3da456d0c885 |
children | 4e3eda05189b |
line wrap: on
line diff
--- a/mercurial/config.py Mon Mar 14 23:03:56 2011 +0100 +++ b/mercurial/config.py Wed Mar 16 18:48:59 2011 +0100 @@ -138,5 +138,5 @@ def read(self, path, fp=None, sections=None, remap=None): if not fp: - fp = open(path) + fp = util.posixfile(path) self.parse(path, fp.read(), sections, remap, self.read)