Skip to content

Commit d195b4a

Browse files
NitaiPNitai Pramanik
andauthored
update a comment. (#429)
Co-authored-by: Nitai Pramanik <nitai.pramanik@verizonwireless.com>
1 parent eb844e9 commit d195b4a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

statemachine/utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ def qualname(cls):
66

77

88
def ensure_iterable(obj):
9+
"""
10+
Returns an iterator if obj is not an instance of string or if it
11+
encounters type error, otherwise it returns a list.
12+
"""
913
if isinstance(obj, str):
1014
return [obj]
1115
try:

0 commit comments

Comments
 (0)