generator: Remove cmp() to work with Python3
authorKyle Manna <kyle@kylemanna.com>
Sat, 19 Sep 2015 22:03:13 +0000 (15:03 -0700)
committerKyle Manna <kyle@kylemanna.com>
Mon, 21 Sep 2015 01:49:42 +0000 (18:49 -0700)
commit0d7ef5f936afc32bfe0aaec8b92667d4c3a026a0
tree8eca6d2d467d8b5940df302c3ddc2f4d785f7a83
parent56134e87657714b50d9837f846410fc30fa9fe7b
generator: Remove cmp() to work with Python3

* Python3 ignores cmp() and __cmp__() and only needs __lt__() for
  sorting.  Delete and update as appropriate.
* Ref: https://docs.python.org/3.0/whatsnew/3.0.html#ordering-comparisons
generator/nanopb_generator.py