Skip to content

Commit ad83f98

Browse files
committed
Fix Python 3.13 failing on Iterable/Iterator reserved names
1 parent 1514f28 commit ad83f98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/searchcommands/chunked_data_stream.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import collections
12
import csv
23
import io
34
import json
4-
from collections import Iterable, Iterator
55

66
import splunklib.searchcommands.internals
77
from splunklib.utils import ensure_binary, ensure_str
@@ -15,7 +15,7 @@ def __init__(self, version, meta, data):
1515
self.data = csv.DictReader(io.StringIO(data.decode("utf-8")), dialect=dialect)
1616

1717

18-
class ChunkedDataStreamIter(Iterator):
18+
class ChunkedDataStreamIter(collections.Iterator):
1919
def __init__(self, chunk_stream):
2020
self.chunk_stream = chunk_stream
2121

@@ -29,7 +29,7 @@ def next(self):
2929
raise StopIteration
3030

3131

32-
class ChunkedDataStream(Iterable):
32+
class ChunkedDataStream(collections.Iterable):
3333
def __iter__(self):
3434
return ChunkedDataStreamIter(self)
3535

0 commit comments

Comments
 (0)