Skip to content

REF: switch to deque.copy() for Python 3 compatibility#2712

Merged
dpkp merged 1 commit intodpkp:masterfrom
yranjan06:master
Feb 25, 2026
Merged

REF: switch to deque.copy() for Python 3 compatibility#2712
dpkp merged 1 commit intodpkp:masterfrom
yranjan06:master

Conversation

@yranjan06
Copy link
Contributor

removed unused 'copy' import and replaced copy.copy() with deque.copy() in kafka/consumer/fetcher.py.
This resolves the TODO comment regarding Python 3 compatibility and improves performance.

Verification

Ran unit tests locally.

Before:
test/test_fetcher.py ... 38 passed in 1.11s

After:
test/test_fetcher.py ... 38 passed in 0.84s

@dpkp dpkp merged commit 3ee9ef3 into dpkp:master Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants