[PATCH 1 of 2] import-checker: increase portability for python 2.6.x

Yuya Nishihara yuya at tcha.org
Tue Jun 21 09:51:53 EDT 2016


On Tue, 21 Jun 2016 05:23:28 -0700, timeless wrote:
> IMO this should have a comment saying we can return to None when we drop 2.6

I wonder if it is the implementation detail of Python. Anyway, we don't
need to distinguish None from the other false values.

> On Jun 18, 2016 1:21 PM, "FUJIWARA Katsunori" <foozy at lares.dti.ne.jp> wrote:
> > -        # name is None when relative imports are used.
> > -        if name is None:
> > +        # name is false value when relative imports are used.
> > +        if not name:


More information about the Mercurial-devel mailing list