util/gen_xmlpool: Don't use len to test for container emptiness
authorDylan Baker <dylan@pnwbakers.com>
Wed, 24 Oct 2018 19:30:03 +0000 (12:30 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Wed, 31 Oct 2018 23:37:46 +0000 (16:37 -0700)
commit465cfcb2663fa732041627e5a35c6cadb7851e75
tree972587a7158c32bbc172c82a237446e94c77418f
parentb9cd81ea3189ffdf847377ebbc11a676dc302a6f
util/gen_xmlpool: Don't use len to test for container emptiness

This is a very common python anti-pattern. Not using length allows us to
go through faster C paths, but has the same meaning.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/util/xmlpool/gen_xmlpool.py