Skip to content

Commit

Permalink
winrt/client: fix logger.warn deprecation warning
Browse files Browse the repository at this point in the history
When run with python3.10 -dev X, we get a warning that warn is
deprecated and we should replace it with warning.
  • Loading branch information
dlech committed Nov 6, 2022
1 parent 6189f27 commit 431cfc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bleak/backends/winrt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ async def connect(self, **kwargs) -> bool:

def handle_services_changed():
if not self._services_changed_events:
logger.warn("%s: unhandled services changed event", self.address)
logger.warning("%s: unhandled services changed event", self.address)
else:
for event in self._services_changed_events:
event.set()
Expand Down

0 comments on commit 431cfc9

Please sign in to comment.