Skip to content

Commit

Permalink
all: Change use of "uasyncio" to "asyncio".
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <[email protected]>
  • Loading branch information
dpgeorge committed Jun 12, 2024
1 parent 50ed36f commit e1c9557
Show file tree
Hide file tree
Showing 27 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions micropython/aioespnow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A supplementary module which extends the micropython `espnow` module to provide
`asyncio` support.

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

## API reference
Expand Down Expand Up @@ -52,7 +52,7 @@ A small async server example::
```python
import network
import aioespnow
import uasyncio as asyncio
import asyncio

# A WLAN interface must be active to send()/recv()
network.WLAN(network.STA_IF).active(True)
Expand Down
6 changes: 3 additions & 3 deletions micropython/aioespnow/aioespnow.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# aioespnow module for MicroPython on ESP32 and ESP8266
# MIT license; Copyright (c) 2022 Glenn Moloney @glenn20

import uasyncio as asyncio
import asyncio
import espnow


# Modelled on the uasyncio.Stream class (extmod/stream/stream.py)
# NOTE: Relies on internal implementation of uasyncio.core (_io_queue)
# Modelled on the asyncio.Stream class (extmod/asyncio/stream.py)
# NOTE: Relies on internal implementation of asyncio.core (_io_queue)
class AIOESPNow(espnow.ESPNow):
# Read one ESPNow message
async def arecv(self):
Expand Down
2 changes: 1 addition & 1 deletion micropython/aiorepl/aiorepl.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async def execute(code, g, s):
code = "return {}".format(code)

code = """
import uasyncio as asyncio
import asyncio
async def __code():
{}
Expand Down
2 changes: 1 addition & 1 deletion micropython/bluetooth/aioble/aioble/central.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import bluetooth
import struct

import uasyncio as asyncio
import asyncio

from .core import (
ensure_active,
Expand Down
2 changes: 1 addition & 1 deletion micropython/bluetooth/aioble/aioble/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from micropython import const
from collections import deque
import uasyncio as asyncio
import asyncio
import struct

import bluetooth
Expand Down
2 changes: 1 addition & 1 deletion micropython/bluetooth/aioble/aioble/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from micropython import const

import uasyncio as asyncio
import asyncio
import binascii

from .core import ble, register_irq_handler, log_error
Expand Down
2 changes: 1 addition & 1 deletion micropython/bluetooth/aioble/aioble/l2cap.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from micropython import const

import uasyncio as asyncio
import asyncio

from .core import ble, log_error, register_irq_handler
from .device import DeviceConnection
Expand Down
2 changes: 1 addition & 1 deletion micropython/bluetooth/aioble/aioble/peripheral.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import bluetooth
import struct

import uasyncio as asyncio
import asyncio

from .core import (
ensure_active,
Expand Down
2 changes: 1 addition & 1 deletion micropython/bluetooth/aioble/aioble/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# MIT license; Copyright (c) 2021 Jim Mussared

from micropython import const, schedule
import uasyncio as asyncio
import asyncio
import binascii
import json

Expand Down
2 changes: 1 addition & 1 deletion micropython/bluetooth/aioble/aioble/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from micropython import const
from collections import deque
import bluetooth
import uasyncio as asyncio
import asyncio

from .core import (
ensure_active,
Expand Down
2 changes: 1 addition & 1 deletion micropython/bluetooth/aioble/examples/l2cap_file_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from micropython import const

import uasyncio as asyncio
import asyncio
import aioble
import bluetooth

Expand Down
2 changes: 1 addition & 1 deletion micropython/bluetooth/aioble/examples/l2cap_file_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from micropython import const

import uasyncio as asyncio
import asyncio
import aioble
import bluetooth

Expand Down
2 changes: 1 addition & 1 deletion micropython/bluetooth/aioble/examples/temp_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from micropython import const

import uasyncio as asyncio
import asyncio
import aioble
import bluetooth

Expand Down
2 changes: 1 addition & 1 deletion micropython/bluetooth/aioble/examples/temp_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from micropython import const

import uasyncio as asyncio
import asyncio
import aioble
import bluetooth

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import machine
import time

import uasyncio as asyncio
import asyncio
import aioble
import bluetooth

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import machine
import time

import uasyncio as asyncio
import asyncio
import aioble
import bluetooth

Expand Down
2 changes: 1 addition & 1 deletion micropython/bluetooth/aioble/multitests/ble_descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import machine
import time

import uasyncio as asyncio
import asyncio
import aioble
import bluetooth

Expand Down
2 changes: 1 addition & 1 deletion micropython/bluetooth/aioble/multitests/ble_notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import machine
import time

import uasyncio as asyncio
import asyncio
import aioble
import bluetooth

Expand Down
2 changes: 1 addition & 1 deletion micropython/bluetooth/aioble/multitests/ble_shutdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import machine
import time

import uasyncio as asyncio
import asyncio
import aioble
import bluetooth

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import machine
import time

import uasyncio as asyncio
import asyncio
import aioble
import bluetooth

Expand Down
2 changes: 1 addition & 1 deletion micropython/bluetooth/aioble/multitests/ble_write_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import machine
import time

import uasyncio as asyncio
import asyncio
import aioble
import bluetooth

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import machine
import time

import uasyncio as asyncio
import asyncio
import aioble
import bluetooth

Expand Down
2 changes: 1 addition & 1 deletion micropython/bluetooth/aioble/multitests/perf_l2cap.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import machine
import time

import uasyncio as asyncio
import asyncio
import aioble
import bluetooth
import random
Expand Down
2 changes: 1 addition & 1 deletion micropython/uaiohttpclient/README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
uaiohttpclient is an HTTP client module for MicroPython uasyncio module,
uaiohttpclient is an HTTP client module for MicroPython asyncio module,
with API roughly compatible with aiohttp (https://github.com/KeepSafe/aiohttp)
module. Note that only client is implemented, for server see picoweb
microframework.
2 changes: 1 addition & 1 deletion micropython/uaiohttpclient/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# uaiohttpclient - fetch URL passed as command line argument.
#
import sys
import uasyncio as asyncio
import asyncio
import uaiohttpclient as aiohttp


Expand Down
2 changes: 1 addition & 1 deletion micropython/uaiohttpclient/manifest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
metadata(description="HTTP client module for MicroPython uasyncio module", version="0.5.2")
metadata(description="HTTP client module for MicroPython asyncio module", version="0.5.2")

# Originally written by Paul Sokolovsky.

Expand Down
2 changes: 1 addition & 1 deletion micropython/uaiohttpclient/uaiohttpclient.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import uasyncio as asyncio
import asyncio


class ClientResponse:
Expand Down

0 comments on commit e1c9557

Please sign in to comment.