simonowen / pyz80

pyz80 - a Z80 cross assembler
GNU General Public License v2.0
18 stars 8 forks source link

Python 3 support #6

Closed stefandrissen closed 7 years ago

stefandrissen commented 7 years ago

fixes #5

  1. use integer division // instead of / which results in a float in Python 3
  2. use -1 instead of '' to prevent mixed type variables (str vs int)
  3. added list stuff - this was proposed by tools/scripts/2to3.py

My files now compile with this version using both Python 2.7 and 3.6 (both on Windows).

simonowen commented 7 years ago

Thanks Stefan! This does clear up all the division warnings from pylint --py3k :)