The change does not preserve compatibility with Python 2.7.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
I used to program in Python many years ago, but I am not very good with it now.
This is my attempt to make the script work with Python 3 as it is the default Python now.
It may be worthwhile fixing the code style in the script to conform to PEP8, etc just to appease linters, code editors, etc.
tools/sched/schedgraph.py | ||
---|---|---|
800 | Looks like you might want to add @total_ordering to class EventSource and the decorator definition: This will complete the port from single func cmp to the new Python 3 method. |