← Back to team overview

yahoo-eng-team team mailing list archive

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

 

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

** Changed in: glance
    Milestone: None => havana-1

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

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

Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released

Bug description:
  for sequences, use the fact that empty sequences are false

  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/glance/+bug/1133094/+subscriptions