[dpdk-dev] [PATCH 09/11] dpdk-pmdinfo: do not use len(x) to test for empty

Stephen Hemminger stephen at networkplumber.org
Mon Sep 7 19:20:59 CEST 2020


On Mon, 7 Sep 2020 10:03:43 +0100
Bruce Richardson <bruce.richardson at intel.com> wrote:

> Does an empty sequence not directly resolve to false in python? If so, the
> len should be removable and just use "if not self.contents:"

Yes, len should be removed there


More information about the dev mailing list