Mercurial > hg-stable
diff hgext/eol.py @ 31426:4cffaf8c4853
eol: use 'wvfs' instead of 'wfile'
Method is about to be deprecated and the modern form is shorter.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Wed, 15 Mar 2017 00:31:59 -0700 |
parents | ab45421285d0 |
children | 8181f378b073 |
line wrap: on
line diff
--- a/hgext/eol.py Wed Mar 15 00:29:09 2017 -0700 +++ b/hgext/eol.py Wed Mar 15 00:31:59 2017 -0700 @@ -223,7 +223,7 @@ if node is None: # Cannot use workingctx.data() since it would load # and cache the filters before we configure them. - data = repo.wfile('.hgeol').read() + data = repo.wvfs('.hgeol').read() else: data = repo[node]['.hgeol'].data() return eolfile(ui, repo.root, data)