comparison hgext/eol.py @ 31417: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
comparison
equal deleted inserted replaced
31416:1527ffe65f9f 31417:4cffaf8c4853
221 for node in nodes: 221 for node in nodes:
222 try: 222 try:
223 if node is None: 223 if node is None:
224 # Cannot use workingctx.data() since it would load 224 # Cannot use workingctx.data() since it would load
225 # and cache the filters before we configure them. 225 # and cache the filters before we configure them.
226 data = repo.wfile('.hgeol').read() 226 data = repo.wvfs('.hgeol').read()
227 else: 227 else:
228 data = repo[node]['.hgeol'].data() 228 data = repo[node]['.hgeol'].data()
229 return eolfile(ui, repo.root, data) 229 return eolfile(ui, repo.root, data)
230 except (IOError, LookupError): 230 except (IOError, LookupError):
231 pass 231 pass