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

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Mon May 21 08:42:26 EDT 2018


yuja added a comment.


  > - return date.strftime(opts['dateformat']) +            return date.strftime(pycompat.sysstr(opts['dateformat']))
  
  Should be `encoding.strfromlocal()` because `opts['dateformat']` is provided
  by user.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3590

To: pulkit, #hg-reviewers
Cc: yuja, mercurial-devel


More information about the Mercurial-devel mailing list