util: use pycompat.bytestr() on repr() in date parse abort
authorAugie Fackler <augie@google.com>
Sun, 25 Feb 2018 22:31:13 -0500
changeset 36568 0c2eeaca0577
parent 36567 81d4a11549ec
child 36569 496875e6d541
util: use pycompat.bytestr() on repr() in date parse abort Avoids the b'' prefix. Differential Revision: https://phab.mercurial-scm.org/D2438
mercurial/util.py
--- a/mercurial/util.py	Fri Mar 02 03:06:43 2018 +0530
+++ b/mercurial/util.py	Sun Feb 25 22:31:13 2018 -0500
@@ -2479,7 +2479,8 @@
             else:
                 break
         else:
-            raise error.ParseError(_('invalid date: %r') % date)
+            raise error.ParseError(
+                _('invalid date: %r') % pycompat.bytestr(date))
     # validate explicit (probably user-specified) date and
     # time zone offset. values must fit in signed 32 bits for
     # current 32-bit linux runtimes. timezones go from UTC-12