Do not use `len(SEQUENCE)` to determine if a sequence is empty
[demo.git] / vnfs / VES5.0 / evel / evel-test-collector / code / collector / test_control.py
index 72f53fb..5d7394e 100644 (file)
@@ -43,9 +43,9 @@ def command_interval(interval):
 def command_throttle(domain, fields, pairs):
     "return a throttlingSpecification"
     throttle_spec = {'eventDomain' : domain}
-    if len(fields):
+    if fields:
         throttle_spec['suppressedFieldNames'] = fields
-    if len(pairs):
+    if pairs:
         throttle_spec['suppressedNvPairsList'] = pairs
     return {'command':
             {'commandType': 'throttlingSpecification',