--- a/hgext/eol.py Wed Mar 29 21:13:55 2017 +0900
+++ b/hgext/eol.py Wed Mar 29 21:23:28 2017 +0900
@@ -101,6 +101,7 @@
error,
extensions,
match,
+ pycompat,
util,
)
@@ -170,7 +171,7 @@
isrepolf = self.cfg.get('repository', 'native') != 'CRLF'
self._encode['NATIVE'] = isrepolf and 'to-lf' or 'to-crlf'
- iswdlf = ui.config('eol', 'native', os.linesep) in ('LF', '\n')
+ iswdlf = ui.config('eol', 'native', pycompat.oslinesep) in ('LF', '\n')
self._decode['NATIVE'] = iswdlf and 'to-lf' or 'to-crlf'
include = []