commit | af7438fd3954cd10da3d111c2e848f6dd511bb88 | [log] [tgz] |
---|---|---|
author | Clint Byrum <clint@fewbar.com> | Wed May 10 17:26:57 2017 -0400 |
committer | Clint Byrum <clint@fewbar.com> | Fri May 19 06:45:30 2017 -0700 |
tree | 0f538faf9fdac97eee0a19a80c82816b7d9b552c | |
parent | c0923d501125724e6fc4161533d386b78c77191f [diff] |
make Job and ZuulRole hashable Python3 removes the default __hash__ method on object if a cusotm __eq__ is defined. This is to encourage authors to make things that are equal more likely to have the same hash. For now we keep python2 behavior (which is to use id(self). Howeve we should probably make it a real hash of the object that matches __eq__'s comparisons. Change-Id: I01c9569bd2d196bb4ffa38276695fefe3c72c957