Change-Id: I97326835e1cfc7cbf2d026f42b37d4afa8c07501
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
for arg in args:
if isinstance(arg, str):
self._args.append(arg)
- elif isinstance(arg, collections.Iterable):
+ elif isinstance(arg, collections.abc.Iterable):
for i in iter(arg):
self._args.append(str(i))
else:
self._data = None
-class LinkedListIterator(collections.Iterator):
+class LinkedListIterator(collections.abc.Iterator):
"""Iterator for the linked list"""
def __init__(self, obj):
return ret
-class LinkedList(collections.Iterable):
+class LinkedList(collections.abc.Iterable):
"""Doubly linked list"""
def __init__(self):