← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1156472] Re: fixes use the fact that empty sequences are false

 

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

** Changed in: keystone
    Milestone: None => icehouse-2

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

Title:
  fixes use the fact that empty sequences are false

Status in OpenStack Identity (Keystone):
  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/keystone/+bug/1156472/+subscriptions