Mercurial > hg-stable
changeset 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 | 4ee493ea1c13 |
children | 8feef8ef8389 |
files | mercurial/debugcommands.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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: