Mercurial > public > mercurial-scm > hg-stable
diff mercurial/debugcommands.py @ 35214:d4b108fdf423
py3: use encoding.strtolocal() to convert string to bytes
Differential Revision: https://phab.mercurial-scm.org/D1557
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Wed, 29 Nov 2017 08:40:25 +0530 |
parents | b45a9d121b53 |
children | f77121b6bf1b |
line wrap: on
line diff
--- 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: