1
0
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:
cfelton@localhost 2008-07-23 21:00:15 -05:00
parent 4ec1283f1a
commit bc7b8fc44c

View File

@ -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