0c0f0143e1
This commit makes to use sequence directly instead of using len(SEQUENCE). The original code works correctly, and it's really straight forward. However, PEP8 recommends like below[1]. And it makes code more simple, too. ``` For sequences, (strings, lists, tuples), use the fact that empty sequences are false. Yes: if not seq: if seq: No: if len(seq): if not len(seq): ``` [1] https://www.python.org/dev/peps/pep-0008/#programming-recommendations Change-Id: I8d41e16d82b1b3860a98e5217cb7a541fc83b907 |
||
---|---|---|
.. | ||
utils | ||
__init__.py | ||
compute.py | ||
credentials_factory.py | ||
custom_matchers.py | ||
dynamic_creds.py | ||
fixed_network.py | ||
identity.py | ||
image.py | ||
preprov_creds.py | ||
tempest_fixtures.py | ||
validation_resources.py | ||
waiters.py |