config: use util.posixfile
authorAdrian Buehlmann <adrian@cadifra.com>
Wed, 16 Mar 2011 18:48:59 +0100
changeset 13664 53db4e2026ab
parent 13663 d16c99f16f00
child 13665 e798e430c5e5
config: use util.posixfile
mercurial/config.py
--- 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)