Skip to content

Commit 7271f1d

Browse files
committed
all: Change use of "uasyncio" to "asyncio".
Signed-off-by: Damien George <damien@micropython.org>
1 parent 1f019f9 commit 7271f1d

27 files changed

+30
-30
lines changed

micropython/aioespnow/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A supplementary module which extends the micropython `espnow` module to provide
44
`asyncio` support.
55

66
- Asyncio support is available on all ESP32 targets as well as those ESP8266
7-
boards which include the `uasyncio` module (ie. ESP8266 devices with at least
7+
boards which include the `asyncio` module (ie. ESP8266 devices with at least
88
2MB flash storage).
99

1010
## API reference
@@ -52,7 +52,7 @@ A small async server example::
5252
```python
5353
import network
5454
import aioespnow
55-
import uasyncio as asyncio
55+
import asyncio
5656

5757
# A WLAN interface must be active to send()/recv()
5858
network.WLAN(network.STA_IF).active(True)

micropython/aioespnow/aioespnow.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# aioespnow module for MicroPython on ESP32 and ESP8266
22
# MIT license; Copyright (c) 2022 Glenn Moloney @glenn20
33

4-
import uasyncio as asyncio
4+
import asyncio
55
import espnow
66

77

8-
# Modelled on the uasyncio.Stream class (extmod/stream/stream.py)
9-
# NOTE: Relies on internal implementation of uasyncio.core (_io_queue)
8+
# Modelled on the asyncio.Stream class (extmod/asyncio/stream.py)
9+
# NOTE: Relies on internal implementation of asyncio.core (_io_queue)
1010
class AIOESPNow(espnow.ESPNow):
1111
# Read one ESPNow message
1212
async def arecv(self):

micropython/aiorepl/aiorepl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async def execute(code, g, s):
4141
code = "return {}".format(code)
4242

4343
code = """
44-
import uasyncio as asyncio
44+
import asyncio
4545
async def __code():
4646
{}
4747

micropython/bluetooth/aioble/aioble/central.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import bluetooth
77
import struct
88

9-
import uasyncio as asyncio
9+
import asyncio
1010

1111
from .core import (
1212
ensure_active,

micropython/bluetooth/aioble/aioble/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from micropython import const
55
from collections import deque
6-
import uasyncio as asyncio
6+
import asyncio
77
import struct
88

99
import bluetooth

micropython/bluetooth/aioble/aioble/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from micropython import const
55

6-
import uasyncio as asyncio
6+
import asyncio
77
import binascii
88

99
from .core import ble, register_irq_handler, log_error

micropython/bluetooth/aioble/aioble/l2cap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from micropython import const
55

6-
import uasyncio as asyncio
6+
import asyncio
77

88
from .core import ble, log_error, register_irq_handler
99
from .device import DeviceConnection

micropython/bluetooth/aioble/aioble/peripheral.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import bluetooth
77
import struct
88

9-
import uasyncio as asyncio
9+
import asyncio
1010

1111
from .core import (
1212
ensure_active,

micropython/bluetooth/aioble/aioble/security.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# MIT license; Copyright (c) 2021 Jim Mussared
33

44
from micropython import const, schedule
5-
import uasyncio as asyncio
5+
import asyncio
66
import binascii
77
import json
88

micropython/bluetooth/aioble/aioble/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from micropython import const
55
from collections import deque
66
import bluetooth
7-
import uasyncio as asyncio
7+
import asyncio
88

99
from .core import (
1010
ensure_active,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy