diff mercurial/util.py @ 36568:0c2eeaca0577

util: use pycompat.bytestr() on repr() in date parse abort Avoids the b'' prefix. Differential Revision: https://phab.mercurial-scm.org/D2438
author Augie Fackler <augie@google.com>
date Sun, 25 Feb 2018 22:31:13 -0500
parents 3158052720ae
children 98d4c642d7f2
line wrap: on
line diff
--- 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