changeset 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 81d4a11549ec
children 496875e6d541
files mercurial/util.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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