Skip to content

Commit

Permalink
fix event response iter (#946)
Browse files Browse the repository at this point in the history
  • Loading branch information
thehesiod authored Jun 23, 2022
1 parent e4ea0ed commit dc57d97
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
COLOR: 'yes'
run: |
python -c "import sys; print(f'Python version: {sys.version}')"
python -m pip install -U setuptools pip pipenv codecov
python -m pip install -U setuptools pip pipenv codecov wheel
pipenv lock --python ${{ matrix.python-version }}
pipenv sync --dev
pipenv check || true
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
python-version: 3.8
- name: Make sdist
run:
python setup.py sdist
python setup.py sdist bdist_wheel
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
Expand Down
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Changes
-------
2.3.4 (2022-06-23)
^^^^^^^^^^^^^^^^^^
* fix select_object_content

2.3.3 (2022-06-07)
^^^^^^^^^^^^^^^^^^
* fix connect timeout while getting IAM creds
Expand Down
2 changes: 1 addition & 1 deletion aiobotocore/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.3.3'
__version__ = '2.3.4'
2 changes: 1 addition & 1 deletion aiobotocore/eventstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class AioEventStream(EventStream):
async def _create_raw_event_generator(self):
event_stream_buffer = EventStreamBuffer()
async for chunk, _ in self._raw_stream.iter_chunks():
async for chunk, _ in self._raw_stream.content.iter_chunks():
event_stream_buffer.add_data(chunk)
for event in event_stream_buffer:
yield event
Expand Down
1 change: 1 addition & 0 deletions tests/test_eventstreams.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ async def __anext__(self):

def __init__(self, chunks):
self.chunks = chunks
self.content = self

def iter_chunks(self):
return self.ChunkedIterator(self.chunks)
Expand Down

0 comments on commit dc57d97

Please sign in to comment.