diff hgext/eol.py @ 36667:bcfc4e3b6548

py3: use bytes() instead of str() Differential Revision: https://phab.mercurial-scm.org/D2617
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 02 Mar 2018 07:16:33 +0530
parents 60802bba1090
children f0b6fbea00cf
line wrap: on
line diff
--- 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