changeset 13664:53db4e2026ab

config: use util.posixfile
author Adrian Buehlmann <adrian@cadifra.com>
date Wed, 16 Mar 2011 18:48:59 +0100
parents d16c99f16f00
children e798e430c5e5
files mercurial/config.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)