← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1156473] Re: For sequences, (strings, lists, tuples), use the fact that empty sequences are false

 

** Changed in: quantum
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to quantum.
https://bugs.launchpad.net/bugs/1156473

Title:
  For sequences, (strings, lists, tuples), use the fact that empty
  sequences are false

Status in OpenStack Quantum (virtual network service):
  Fix Released

Bug description:
  For sequences, (strings, lists, tuples), use the fact that empty
  sequences are false(PEP 8 Programming Recommendations)

  Yes: if not seq:
       if seq:

  No: if len(seq)
      if not len(seq)

To manage notifications about this bug go to:
https://bugs.launchpad.net/quantum/+bug/1156473/+subscriptions