← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1413538] Re: incompatible syntax in python2.6

 

I think "for group in {g['name']: g for g in groups}.values():" is too
fancy.

why not "for group in groups:"

** Changed in: keystone
       Status: Invalid => New

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

Title:
  incompatible syntax in python2.6

Status in OpenStack Identity (Keystone):
  New

Bug description:
  in keystone/contrib/federation/utils.py
          def extract_groups(groups_by_domain):
              for groups in groups_by_domain.values():
                  for group in {g['name']: g for g in groups}.values():         >>>>>>>>>>>>>> this is invalid syntax in python 2.6
                      yield group

          # initialize the group_ids as a set to eliminate duplicates
          user_name = None

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


References