mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
Change to the conditional check. The conditional check would error out when numpy arrays were used. Numpy arrays would not resolve to a boolean value when tested.
This commit is contained in:
parent
4ec1283f1a
commit
bc7b8fc44c
@ -126,7 +126,7 @@ def _addUserCode(hdl, arg, code, namespace, sourcefile, funcname, sourceline):
|
||||
|
||||
|
||||
def _isListOfSigs(obj):
|
||||
if obj and isinstance(obj, list):
|
||||
if obj != None and isinstance(obj, list):
|
||||
for e in obj:
|
||||
if not isinstance(e, Signal):
|
||||
return False
|
||||
|
Loading…
x
Reference in New Issue
Block a user