kopia lustrzana https://github.com/micropython/micropython-lib
aiorepl: Update import of asyncio.
Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>pull/756/head
rodzic
41aa257a31
commit
e051a120bc
|
@ -21,7 +21,7 @@ To use this library, you need to import the library and then start the REPL task
|
||||||
For example, in main.py:
|
For example, in main.py:
|
||||||
|
|
||||||
```py
|
```py
|
||||||
import uasyncio as asyncio
|
import asyncio
|
||||||
import aiorepl
|
import aiorepl
|
||||||
|
|
||||||
async def demo():
|
async def demo():
|
||||||
|
|
|
@ -5,7 +5,7 @@ from micropython import const
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import uasyncio as asyncio
|
import asyncio
|
||||||
|
|
||||||
# Import statement (needs to be global, and does not return).
|
# Import statement (needs to be global, and does not return).
|
||||||
_RE_IMPORT = re.compile("^import ([^ ]+)( as ([^ ]+))?")
|
_RE_IMPORT = re.compile("^import ([^ ]+)( as ([^ ]+))?")
|
||||||
|
|
Ładowanie…
Reference in New Issue