# HG changeset patch # User Patrick Mezard # Date 1300025264 -3600 # Node ID 21367c3da8aa7f3f68c9f210312d7060eac8028a # Parent 358924b0abce1514785b0576e73ddaa4dee895c0 eol: remove unused argument in readhgeol() diff -r 358924b0abce -r 21367c3da8aa hgext/eol.py --- a/hgext/eol.py Sun Mar 13 15:07:44 2011 +0100 +++ b/hgext/eol.py Sun Mar 13 15:07:44 2011 +0100 @@ -187,17 +187,16 @@ _decode = {'LF': 'to-lf', 'CRLF': 'to-crlf', 'BIN': 'is-binary'} _encode = {'LF': 'to-lf', 'CRLF': 'to-crlf', 'BIN': 'is-binary'} - def readhgeol(self, node=None, data=None): - if data is None: - try: - if node is None: - # Cannot use workingctx.data() since it would load - # and cache the filters before we configure them. - data = self.wfile('.hgeol').read() - else: - data = self[node]['.hgeol'].data() - except (IOError, LookupError): - return None + def readhgeol(self, node=None): + try: + if node is None: + # Cannot use workingctx.data() since it would load + # and cache the filters before we configure them. + data = self.wfile('.hgeol').read() + else: + data = self[node]['.hgeol'].data() + except (IOError, LookupError): + return None if self.ui.config('eol', 'native', os.linesep) in ('LF', '\n'): self._decode['NATIVE'] = 'to-lf'