]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Python 3: do not use cmp(), nor sorted(..., cmp=...)
authorCyril Roelandt <cyril@redhat.com>
Wed, 17 Jun 2015 14:25:56 +0000 (14:25 +0000)
committerCyril Roelandt <cyril@redhat.com>
Wed, 17 Jun 2015 14:53:41 +0000 (16:53 +0200)
commit53209ca19ac2116d293b6fbc7b31254cb27a3ecb
tree1d1caa1c9017dbf6ce696667288da56dba9653db
parent3b27f83964d44241dd03d680f79e14e7459db4da
Python 3: do not use cmp(), nor sorted(..., cmp=...)

* The "cmp" function has been removed, so we must not use it any more;
* The "cmp" keyword argument of the "sorted" function has been removed, so
  replace it with "key=functool.cmp_to_key".

Change-Id: Ic39d29dc1002a68f36f04c32e53a36bc826dce78
Blueprint: neutron-python3
neutron/api/api_common.py