Skip to content

all: remove u-module naming where possible #880

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 14, 2024

Conversation

dpgeorge
Copy link
Member

This changes almost all uses of "u-module" to just "module" for the following built-in modules:
- asyncio
- binascii
- collections
- errno
- io
- json
- socket
- struct
- sys
- time

There are some remaining uses of "u-module" naming, for the cases where the built-in module is extended in Python, eg python-stdlib/os uses uos.

Also, there are remaining uses of utime when non-standard (compared to CPython) functions are used, like utime.ticks_ms().

@dpgeorge dpgeorge force-pushed the all-remove-u-module-naming branch 2 times, most recently from 68ae281 to 3485f7b Compare June 12, 2024 05:13
dpgeorge added 3 commits June 14, 2024 10:29
Signed-off-by: Damien George <damien@micropython.org>
This changes almost all uses of "u-module" to just "module" for the
following built-in modules:
- binascii
- collections
- errno
- io
- json
- socket
- struct
- sys
- time

There are some remaining uses of "u-module" naming, for the cases where the
built-in module is extended in Python, eg `python-stdlib/os` uses `uos`.

Also, there are remaining uses of `utime` when non-standard (compared to
CPython) functions are used, like `utime.ticks_ms()`.

Signed-off-by: Damien George <damien@micropython.org>
Storing references to tasks is required by CPython, and enforced by Ruff
RUF006.  In this case it's also reasonable to cancel these tasks once the
test is finished.

Signed-off-by: Damien George <damien@micropython.org>
@dpgeorge dpgeorge force-pushed the all-remove-u-module-naming branch from 3485f7b to 2b3bd5b Compare June 14, 2024 00:46
@dpgeorge dpgeorge merged commit 2b3bd5b into micropython:master Jun 14, 2024
3 checks passed
@dpgeorge dpgeorge deleted the all-remove-u-module-naming branch June 14, 2024 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant