# HG changeset patch # User Augie Fackler # Date 1539424696 14400 # Node ID 6f3e733848aeb5f7266d3e21373f1b9045cacdda # Parent 379dd054614bdf645712ee51ac172c8b08ab3dc2 churn: fix stack traces on Python 3 Differential Revision: https://phab.mercurial-scm.org/D5062 diff -r 379dd054614b -r 6f3e733848ae hgext/churn.py --- a/hgext/churn.py Sat Oct 13 04:00:57 2018 -0400 +++ b/hgext/churn.py Sat Oct 13 05:58:16 2018 -0400 @@ -52,7 +52,8 @@ def getkey(ctx): t, tz = ctx.date() date = datetime.datetime(*time.gmtime(float(t) - tz)[:6]) - return date.strftime(encoding.strfromlocal(opts['dateformat'])) + return encoding.strtolocal( + date.strftime(encoding.strfromlocal(opts['dateformat']))) else: tmpl = opts.get('oldtemplate') or opts.get('template') tmpl = logcmdutil.maketemplater(ui, repo, tmpl)