[PATCH] config: use util.posixfile
Adrian Buehlmann
adrian at cadifra.com
Wed Mar 16 18:44:39 UTC 2011
# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1300297739 -3600
# Node ID 53db4e2026abd96e603b88e50f17b803d4f922f2
# Parent d16c99f16f00d68ca79e3a383335bc866a8c409f
config: use util.posixfile
diff --git a/mercurial/config.py b/mercurial/config.py
--- a/mercurial/config.py
+++ b/mercurial/config.py
@@ -138,5 +138,5 @@ class config(object):
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)
More information about the Mercurial-devel
mailing list