diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2023-06-08 16:42:19 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-06-19 18:37:34 +1000 |
commit | ca79b4961953be587a290bc995ae925e664c9fbc (patch) | |
tree | 798616c8c5fdf50390f48e942befdd4b5520f588 /extmod/asyncio/manifest.py | |
parent | 7979a4d26776330a89166fa60c917475579f7dd8 (diff) |
extmod/asyncio/uasyncio.py: Add backwards-compatible uasyncio alias.
This allows existing code that does `import uasyncio` or
`import uasyncio as asyncio` to continue working.
It uses the same lazy-loading as asyncio to prevent loading of unused
features.
This work was funded through GitHub Sponsors.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'extmod/asyncio/manifest.py')
-rw-r--r-- | extmod/asyncio/manifest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extmod/asyncio/manifest.py b/extmod/asyncio/manifest.py index 0aba5b185..e8dc76432 100644 --- a/extmod/asyncio/manifest.py +++ b/extmod/asyncio/manifest.py @@ -13,3 +13,6 @@ package( base_path="..", opt=3, ) + +# Backwards-compatible uasyncio module. +module("uasyncio.py", opt=3) |