Remove ordered_elements_of_iterable and get_iterator_types, because they are not used anymore.

This commit is contained in:
Dave Halter
2015-12-03 09:25:11 +01:00
parent 76bbc91ff9
commit f66b8138b7
2 changed files with 4 additions and 61 deletions

View File

@@ -187,6 +187,8 @@ def builtins_isinstance(evaluator, objects, types, arguments):
if cls_or_tup.is_class():
bool_results.add(cls_or_tup in mro)
else:
# TODO Actually we should check for non iterables here (the
# type should be object or tuple of object)
# Check for tuples.
classes = iterable.py__iter__types(evaluator, set([cls_or_tup]))
bool_results.add(any(cls in mro for cls in classes))