eol: remove unused argument in readhgeol()
authorPatrick Mezard <pmezard@gmail.com>
Sun, 13 Mar 2011 15:07:44 +0100
changeset 13612 21367c3da8aa
parent 13611 358924b0abce
child 13613 85b80261ca10
eol: remove unused argument in readhgeol()
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'