[dpdk-dev] [PATCH] doc: fix build with python 3.8
Bruce Richardson
bruce.richardson at intel.com
Tue Dec 10 13:00:23 CET 2019
On Mon, Dec 09, 2019 at 10:00:00PM +0100, Thomas Monjalon wrote:
> After upgrading to python-3.8.0, a syntax mismatch is revealed:
>
> doc/guides/conf.py:240: SyntaxWarning: "is not" with a literal.
> Did you mean "!="?
> if value is not '':
>
> Replacing "is not" with "!=" seems the right thing to do.
>
Since this is basically just checking for an empty string is
"len(value) > 0" not more logical than either comparison against ''?
/Bruce
More information about the dev
mailing list