Details
Details
- Reviewers
yuja - Group Reviewers
hg-reviewers - Commits
- rHGd4b108fdf423: py3: use encoding.strtolocal() to convert string to bytes
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
The result of strftime() has to be converted back to local string
by .encode('ascii') or encoding.strtolocal().
See util.parsedate() for details.
mercurial/debugcommands.py | ||
---|---|---|
730 | timestr may be either bytes or str. strtolocal() should be |
timestr may be either bytes or str. strtolocal() should be
applied only to the return value of strftime().