heat/heat
Zane Bitter a23928ce80 Implement the correct total ordering for scheduler.Timeout
The commit 640abe0c12 implemented rich
comparison methods for the scheduler.Timeout class in order to be
compatible with Python3. However, it left out most of the checks to ensure
that Timeouts are compared only to other timeouts. It also left behind a
completely incorrect implmentation of __cmp__, although it didn't matter
because that is ignored for objects that implement rich comparisons.

This change deletes __cmp__, adds the type checking, and uses
functools.total_ordering to cut down on the amount of boilerplate.

Change-Id: Idf65d41705cefe9dab8ad5a518b142314077086b
2016-07-18 20:37:44 +00:00
..
api Add stack files retrieval API 2016-07-11 18:02:59 +01:00
cloudinit Use Fedora 24 base image 2016-07-12 11:48:47 +02:00
cmd Replace raw_input with input to make PY3 compatible 2016-06-28 00:44:23 +00:00
common Merge "Use to_policy_values from context for policy" 2016-07-15 05:57:59 +00:00
db Do not raise NotFound for resource_get_all_* queries 2016-07-15 11:57:39 +12:00
engine Implement the correct total ordering for scheduler.Timeout 2016-07-18 20:37:44 +00:00
hacking Restrict use of iteritems, iterkeys and itervalues 2016-03-23 10:05:54 +00:00
httpd Moved CORS middleware configuration into oslo-config-generator 2016-03-14 08:19:29 -07:00
locale Imported Translations from Zanata 2016-06-02 07:02:51 +00:00
objects Do not populate unused stack and watch rule objects 2016-07-11 09:56:29 +12:00
openstack replace git protocol by https 2015-10-22 10:06:05 +08:00
rpc Merge "Add stack files retrieval API" 2016-07-12 11:20:30 +00:00
scaling Ignore NotFound exception in metadata_set 2016-05-26 18:28:10 +00:00
tests Merge "Do not show HIDDEN props in res type template" 2016-07-18 19:09:14 +00:00
__init__.py Make import of oslo libraries namespaceless 2015-02-18 22:54:10 +01:00
version.py Make the first line of every file consistent. 2014-03-04 09:03:04 -06:00