Skip to content

Commit f6c82a3

Browse files
committed
'wait4ports' check for all literal port names
1 parent b8a22b8 commit f6c82a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def wait4ports(ports, tmax=5, interval=0.1):
135135

136136
while (time.time() - time_start) < tmax:
137137
# Names of up ports at this very moment as a generator.
138-
up_ports = port.name for port in jc.get_ports()
138+
up_ports = [port.name for port in jc.get_ports()]
139139
# Compare sets and, if wanted ports are among up ports,
140140
# then wanted ports are up and ready :-)
141141
if set(ports).issubset(set(up_ports)):

0 commit comments

Comments
 (0)