Skip to content

Commit

Permalink
Merge pull request #2908 from freakboy3742/android-3.13
Browse files Browse the repository at this point in the history
Update Android event loop integration for Py3.13.
  • Loading branch information
mhsmith authored Oct 14, 2024
2 parents a27c304 + 84d455f commit 19e0469
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions android/src/toga_android/libs/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ def unregister(self, fileobj): # pragma: no cover
def reregister_with_android_soon(self, fileobj):
def _reregister():
# If the fileobj got unregistered, exit early.
key = self._key_from_fd(fileobj)
key = self._fd_to_key.get(fileobj)

if key is None: # pragma: no cover
if self._debug:
print(
Expand Down Expand Up @@ -344,7 +345,8 @@ def handle_fd_wakeup(self, fd, events):
"""Accept a FD and the events that it is ready for (read and/or write).
Filter the events to just those that are registered, then notify the loop."""
key = self._key_from_fd(fd)
key = self._fd_to_key.get(fd)

if key is None: # pragma: no cover
print(
"Warning: handle_fd_wakeup: wakeup for unregistered fd={fd}".format(
Expand Down
1 change: 1 addition & 0 deletions changes/2907.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The integration with Android's event loop has been updated to support Python 3.13.

0 comments on commit 19e0469

Please sign in to comment.