hgext/eol.py
changeset 36667 bcfc4e3b6548
parent 34830 60802bba1090
child 37084 f0b6fbea00cf
--- a/hgext/eol.py	Fri Mar 02 07:15:54 2018 +0530
+++ b/hgext/eol.py	Fri Mar 02 07:16:33 2018 +0530
@@ -222,7 +222,7 @@
                 data = ctx[f].data()
                 if (target == "to-lf" and "\r\n" in data
                     or target == "to-crlf" and singlelf.search(data)):
-                    failed.append((f, target, str(ctx)))
+                    failed.append((f, target, bytes(ctx)))
                 break
         return failed