D6107: py3: use r'' instead of b'' in opts.get() in phabricator.py
Kwan (Ian Moody)
phabricator at mercurial-scm.org
Thu Mar 14 11:40:21 EDT 2019
Kwan added a comment.
In https://phab.mercurial-scm.org/D6107#88990, @yuja wrote:
> `pycompat.byteskwargs()` can be used instead.
I was under the impression that that was more of a hack, mainly useful for when there are lots of existing `opts.get(b'')` uses in a file, and when there are a few it was better to change to `r''`. Is it preferred to always use that then?
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D6107
To: Kwan, #hg-reviewers
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list