micropython/extmod/asyncio/uasyncio.py

9 wiersze
201 B
Python

# 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)