py3: make sure we pass str to date.strftime()
Differential Revision: https://phab.mercurial-scm.org/D3590
--- 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)