Skip to content

Commit 056ef29

Browse files
friedmeta-codesync[bot]
authored andcommitted
Migrate asyncio.get_event_loop() to get_running_loop() in watchman
Summary: Automated codemod to replace deprecated asyncio.get_event_loop() with asyncio.get_running_loop() inside async functions. Reviewed By: drinkmorewaterr Differential Revision: D92192039 fbshipit-source-id: 99ea99a55948fb1362f6307215673e52280d6787
1 parent 34ea0e8 commit 056ef29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

watchman/python/pywatchman_aio/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def _resolve_sockname_helper():
6565

6666
async def _resolve_sockname():
6767
"""Find the Unix socket path to the global Watchman instance."""
68-
loop = asyncio.get_event_loop()
68+
loop = asyncio.get_running_loop()
6969
return await loop.run_in_executor(None, _resolve_sockname_helper)
7070

7171

0 commit comments

Comments
 (0)