# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1526734281 -19800 # Node ID 543b7b349b2c9807b9dcfded08d7dcc79f10c5c2 # Parent 64280cd4b454dc300c8158f8d465df2dd029b40d py3: make sure we pass str to date.strftime() Differential Revision: https://phab.mercurial-scm.org/D3590 diff -r 64280cd4b454 -r 543b7b349b2c hgext/churn.py --- a/hgext/churn.py Sat May 19 21:47:59 2018 +0530 +++ b/hgext/churn.py Sat May 19 18:21:21 2018 +0530 @@ -52,7 +52,7 @@ def getkey(ctx): t, tz = ctx.date() date = datetime.datetime(*time.gmtime(float(t) - tz)[:6]) - return date.strftime(opts['dateformat']) + return date.strftime(pycompat.sysstr(opts['dateformat'])) else: tmpl = opts.get('oldtemplate') or opts.get('template') tmpl = logcmdutil.maketemplater(ui, repo, tmpl)