D3590: py3: make sure we pass str to date.strftime()

Yuya Nishihara yuya at tcha.org
Mon May 21 12:41:58 UTC 2018


> -            return date.strftime(opts['dateformat'])
> +            return date.strftime(pycompat.sysstr(opts['dateformat']))

Should be `encoding.strfromlocal()` because `opts['dateformat']` is provided
by user.



More information about the Mercurial-devel mailing list