diff options
Diffstat (limited to 'extmod/asyncio/uasyncio.py')
-rw-r--r-- | extmod/asyncio/uasyncio.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/extmod/asyncio/uasyncio.py b/extmod/asyncio/uasyncio.py new file mode 100644 index 0000000000..67e6ddcfa3 --- /dev/null +++ b/extmod/asyncio/uasyncio.py @@ -0,0 +1,8 @@ +# This module just allows `import uasyncio` to work. It lazy-loads from +# `asyncio` without duplicating its globals dict. + + +def __getattr__(attr): + import asyncio + + return getattr(asyncio, attr) |