diff -Nru aiofiles-0.8.0/debian/changelog aiofiles-0.8.0/debian/changelog --- aiofiles-0.8.0/debian/changelog 2022-01-26 21:08:31.000000000 +0000 +++ aiofiles-0.8.0/debian/changelog 2022-02-01 22:16:51.000000000 +0000 @@ -1,3 +1,10 @@ +aiofiles (0.8.0-2ubuntu1) jammy; urgency=medium + + * d/p/001-update-get-event-loop.patch: For python3.10 update calls to + get_event_loop. + + -- Brian Murray Tue, 01 Feb 2022 14:16:51 -0800 + aiofiles (0.8.0-2) unstable; urgency=medium * Remove unreliable unit test. diff -Nru aiofiles-0.8.0/debian/control aiofiles-0.8.0/debian/control --- aiofiles-0.8.0/debian/control 2022-01-24 01:35:50.000000000 +0000 +++ aiofiles-0.8.0/debian/control 2022-02-01 22:16:51.000000000 +0000 @@ -1,7 +1,8 @@ Source: aiofiles Section: python Priority: optional -Maintainer: David Steele +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: David Steele Build-Depends: debhelper-compat (= 12), dh-python, diff -Nru aiofiles-0.8.0/debian/patches/001-update-get-event-loop.patch aiofiles-0.8.0/debian/patches/001-update-get-event-loop.patch --- aiofiles-0.8.0/debian/patches/001-update-get-event-loop.patch 1970-01-01 00:00:00.000000000 +0000 +++ aiofiles-0.8.0/debian/patches/001-update-get-event-loop.patch 2022-02-01 22:15:37.000000000 +0000 @@ -0,0 +1,51 @@ +--- a/src/aiofiles/os.py ++++ b/src/aiofiles/os.py +@@ -8,7 +8,7 @@ + @wraps(func) + async def run(*args, loop=None, executor=None, **kwargs): + if loop is None: +- loop = asyncio.get_event_loop() ++ loop = asyncio.get_event_loop_policy().get_event_loop() + pfunc = partial(func, *args, **kwargs) + return await loop.run_in_executor(executor, pfunc) + +--- a/src/aiofiles/tempfile/__init__.py ++++ b/src/aiofiles/tempfile/__init__.py +@@ -141,7 +141,7 @@ + ): + """Async method to open a temporary file with async interface""" + if loop is None: +- loop = asyncio.get_event_loop() ++ loop = asyncio.get_event_loop_policy().get_event_loop() + + if named: + cb = partial( +@@ -195,7 +195,7 @@ + ): + """Open a spooled temporary file with async interface""" + if loop is None: +- loop = asyncio.get_event_loop() ++ loop = asyncio.get_event_loop_policy().get_event_loop() + + cb = partial( + syncSpooledTemporaryFile, +@@ -220,7 +220,7 @@ + ): + """Async method to open a temporary directory with async interface""" + if loop is None: +- loop = asyncio.get_event_loop() ++ loop = asyncio.get_event_loop_policy().get_event_loop() + + cb = partial(syncTemporaryDirectory, suffix, prefix, dir) + f = await loop.run_in_executor(executor, cb) +--- a/src/aiofiles/threadpool/__init__.py ++++ b/src/aiofiles/threadpool/__init__.py +@@ -65,7 +65,7 @@ + ): + """Open an asyncio file.""" + if loop is None: +- loop = asyncio.get_event_loop() ++ loop = asyncio.get_event_loop_policy().get_event_loop() + cb = partial( + sync_open, + file, diff -Nru aiofiles-0.8.0/debian/patches/series aiofiles-0.8.0/debian/patches/series --- aiofiles-0.8.0/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ aiofiles-0.8.0/debian/patches/series 2022-02-01 22:15:37.000000000 +0000 @@ -0,0 +1 @@ +001-update-get-event-loop.patch diff -Nru aiofiles-0.8.0/debian/tests/runtest.py aiofiles-0.8.0/debian/tests/runtest.py --- aiofiles-0.8.0/debian/tests/runtest.py 2022-01-24 01:35:50.000000000 +0000 +++ aiofiles-0.8.0/debian/tests/runtest.py 2022-02-01 22:16:50.000000000 +0000 @@ -10,7 +10,7 @@ assert('aiofiles' in contents) -event_loop = asyncio.get_event_loop() +event_loop = asyncio.get_event_loop_policy().get_event_loop() try: event_loop.run_until_complete(test_aiofiles()) finally: