D3635: py3: add support for NoneType in stringutil.pprint()
yuja (Yuya Nishihara)
phabricator at mercurial-scm.org
Tue May 22 07:41:10 EDT 2018
yuja added a comment.
>> --- a/mercurial/utils/stringutil.py
> > +++ b/mercurial/utils/stringutil.py
> > @@ -29,6 +29,8 @@
> > if bprefix:
> > return "b'%s'" % escapestr(o)
> > return "'%s'" % escapestr(o)
> > + elif o is None:
> > + return 'None'
>
> Should be handled by `b'%r' % o`.
Dropped this patch from hg-committed before sinking deep.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D3635
To: pulkit, #hg-reviewers, indygreg
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list