Skip to content

Commit 1c3a05d

Browse files
committed
fix builtins import
1 parent 9887ad3 commit 1c3a05d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

myhdl/_intbv.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
maxint = sys.maxint
2525
import operator
2626

27-
from myhdl._compat import long, integer_types, string_types
28-
from myhdl._compat.builtins import max as maxfunc
27+
from myhdl._compat import long, integer_types, string_types, builtins
2928
from myhdl._bin import bin
3029

3130

@@ -47,7 +46,7 @@ def __init__(self, val=0, min=None, max=None, _nrbits=0):
4746
_nrbits = len(bin(min))
4847
else:
4948
# make sure there is a leading zero bit in positive numbers
50-
_nrbits = maxfunc(len(bin(max-1))+1, len(bin(min)))
49+
_nrbits = builtins.max(len(bin(max-1))+1, len(bin(min)))
5150
if isinstance(val, integer_types):
5251
self._val = val
5352
elif isinstance(val, string_types):

0 commit comments

Comments
 (0)