Python 3 compat.
Try to keep our Python sources compatible with both Python 2.7 and 3. Check with 'pylint --py3k' and 'python -3'.
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
"""
|
||||
RISC-V Encodings.
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
from cretonne import base
|
||||
from defs import RV32, RV64
|
||||
from recipes import OPIMM, OPIMM32, OP, OP32, R, Rshamt
|
||||
from .defs import RV32, RV64
|
||||
from .recipes import OPIMM, OPIMM32, OP, OP32, R, Rshamt
|
||||
|
||||
# Basic arithmetic binary instructions are encoded in an R-type instruction.
|
||||
for inst, f3, f7 in [
|
||||
|
||||
Reference in New Issue
Block a user