]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Python 3: use a hash to sort dictionaries
authorCedric Brandily <zzelle@gmail.com>
Wed, 22 Jul 2015 22:35:36 +0000 (00:35 +0200)
committerCedric Brandily <zzelle@gmail.com>
Mon, 31 Aug 2015 20:53:27 +0000 (22:53 +0200)
commit99c9af8f7ab7c38816d4873f3b10f77364f811c4
tree60e191238bc0792118ff967e9e7b1cd44a5a2216
parent6324f7f23d5debecf7201a371050e20527550a8c
Python 3: use a hash to sort dictionaries

Dictionaries are unorderable in py3K. This change defines the method
safe_sort_key[1] which could be used a sort function for list of
dictionaries and non-dictionaries.

[1] neutron.common.utils

Change-Id: I9c9fae53bb3ac5b8611c92164c9630c82c2d0ceb
Blueprint: neutron-python3
neutron/agent/l3/router_info.py
neutron/common/utils.py
neutron/tests/tools.py
neutron/tests/unit/db/test_db_base_plugin_v2.py
neutron/tests/unit/extensions/test_extraroute.py
neutron/tests/unit/plugins/cisco/n1kv/test_n1kv_plugin.py
tox.ini