cpc / openasip

Open Application-Specific Instruction Set processor tools (OpenASIP)
http://openasip.org
Other
143 stars 43 forks source link

Python 3 support #110

Closed Kazhuu closed 3 years ago

Kazhuu commented 3 years ago

Remove Python 2 and support for Python 3 only. Python 2 is deprecated and not recommended to use anymore. I used to following scripts to test the build

make -j4 && tools/scripts/compiletest.sh -cq
tce-selftest -v

I tried to look for Python files what I could find. Some of them might not be used by the above testing scripts. Feel free to point out if I missed something. On many files I fixed formatting issues, spaces and tabs mixed to only use spaces and updated python 2 functions to use python 3 instead. Also found some already existing issues like misspelled variable names.

Comments welcome!