eol: use 'wvfs' instead of 'wfile'
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 15 Mar 2017 00:31:59 -0700
changeset 31417 4cffaf8c4853
parent 31416 1527ffe65f9f
child 31418 fb1b5cd17664
eol: use 'wvfs' instead of 'wfile' Method is about to be deprecated and the modern form is shorter.
hgext/eol.py
--- 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)