Skip to content

Conversation

@0x07CB
Copy link

@0x07CB 0x07CB commented Oct 19, 2024

Your DHT11 class does not correctly implement the iterator protocol in Python 3.

In Python 3, the special method to get the next element of an iterator is called next() instead of next().

Therefore, to fix this issue, you need to rename the next() method to next() in your DHT11 class.

fix python3 coding error
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