# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-11-29 03:10:25 # Node ID d4b108fdf4231565ec15656ba0f7e8d96fe7ff29 # Parent 4ee493ea1c13d3639de0c4d17959045baf702f32 py3: use encoding.strtolocal() to convert string to bytes Differential Revision: https://phab.mercurial-scm.org/D1557 diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -721,6 +721,7 @@ def debugstate(ui, repo, **opts): 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: