Skip to content

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

Open
yranjan06 wants to merge 1 commit intodpkp:masterfrom
yranjan06:master
Open

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

Conversation

@yranjan06
Copy link

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

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.

1 participant