py3: use encoding.strtolocal() to convert string to bytes
authorPulkit Goyal <7895pulkit@gmail.com>
Wed, 29 Nov 2017 08:40:25 +0530
changeset 35214 d4b108fdf423
parent 35213 4ee493ea1c13
child 35215 8feef8ef8389
py3: use encoding.strtolocal() to convert string to bytes Differential Revision: https://phab.mercurial-scm.org/D1557
mercurial/debugcommands.py
--- a/mercurial/debugcommands.py	Wed Nov 29 08:39:48 2017 +0530
+++ b/mercurial/debugcommands.py	Wed Nov 29 08:40:25 2017 +0530
@@ -721,6 +721,7 @@
         else:
             timestr = time.strftime(r"%Y-%m-%d %H:%M:%S ",
                                     time.localtime(ent[3]))
+            timestr = encoding.strtolocal(timestr)
         if ent[1] & 0o20000:
             mode = 'lnk'
         else: