Skip to content

Commit 3fca404

Browse files
committed
Simplify test for iterable iter_fn
1 parent f97db03 commit 3fca404

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

robotpy_ext/autonomous/selector.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
from glob import glob
3-
from collections import Iterable
43
import importlib
54
import inspect
65
import os
@@ -237,7 +236,7 @@ def run(self, control_loop_wait_time=0.020, iter_fn=None, on_exception=None):
237236
except:
238237
on_exception()
239238

240-
if isinstance(iter_fn, Iterable):
239+
if isinstance(iter_fn, (list, tuple)):
241240
for fn in iter_fn:
242241
fn()
243242
else:

0 commit comments

Comments
 (0)