Skip to content

Commit c73a25d

Browse files
authored
Merge branch 'zwei' into clean-up-tests-bc-no-more-python-2-tf
2 parents e1eb82c + acbe02b commit c73a25d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/sagemaker/predictor.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,10 +395,7 @@ def _is_sequence_like(obj):
395395
Args:
396396
obj:
397397
"""
398-
# Need to explicitly check on str since str lacks the iterable magic methods in Python 2
399-
return ( # pylint: disable=consider-using-ternary
400-
hasattr(obj, "__iter__") and hasattr(obj, "__getitem__")
401-
) or isinstance(obj, str)
398+
return hasattr(obj, "__iter__") and hasattr(obj, "__getitem__")
402399

403400

404401
def _row_to_csv(obj):

0 commit comments

Comments
 (0)