Skip to content

Commit 6ca07a4

Browse files
committed
chore: Fix spelling and typos in comments and docstring.
Spelling preferences based on codespell configuration. Signed-off-by: Jos Verlinde <Jos.Verlinde@Microsoft.com>
1 parent d77fe1e commit 6ca07a4

File tree

9 files changed

+11
-10
lines changed

9 files changed

+11
-10
lines changed

micropython/bluetooth/aioble/aioble/central.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ async def _connect(
119119
_connecting.add(device)
120120

121121
# Event will be set in the connected IRQ, and then later
122-
# re-used to notify disconnection.
122+
# reused to notify disconnection.
123123
connection._event = connection._event or asyncio.ThreadSafeFlag()
124124

125125
try:

micropython/bluetooth/aioble/aioble/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ async def read(self, timeout_ms=1000):
244244
self._register_with_connection()
245245
# This will be set by the done IRQ.
246246
self._read_status = None
247-
# This will be set by the result and done IRQs. Re-use if possible.
247+
# This will be set by the result and done IRQs. Reuse if possible.
248248
self._read_event = self._read_event or asyncio.ThreadSafeFlag()
249249

250250
# Issue the read.

micropython/espflash/example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
esp = espflash.ESPFlash(reset, gpio0, uart)
1414
# Enter bootloader download mode, at 115200
1515
esp.bootloader()
16-
# Can now chage to higher/lower baudrate
16+
# Can now change to higher/lower baudrate
1717
esp.set_baudrate(921600)
1818
# Must call this first before any flash functions.
1919
esp.flash_attach()

micropython/senml/examples/custom_record.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Coordinates(SenmlRecord):
3232
def __init__(self, name, **kwargs):
3333
"""overriding the init function so we can initiate the 3 senml records that will represent lat,lon, alt"""
3434
self._lat = SenmlRecord(
35-
"lattitude", unit=SenmlUnits.SENML_UNIT_DEGREES_LATITUDE
35+
"latitude", unit=SenmlUnits.SENML_UNIT_DEGREES_LATITUDE
3636
) # create these before calling base constructor so that all can be init correctly from constructor
3737
self._lon = SenmlRecord("longitude", unit=SenmlUnits.SENML_UNIT_DEGREES_LONGITUDE)
3838
self._alt = SenmlRecord("altitude", unit=SenmlUnits.SENML_UNIT_METER)

micropython/senml/senml/senml_record.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def _build_rec_dict(self, naming_map, appendTo):
188188
elif isinstance(self._value, bytearray):
189189
if (
190190
naming_map["vd"] == "vd"
191-
): # neeed to make a distinction between json (needs base64) and cbor (needs binary)
191+
): # need to make a distinction between json (needs base64) and cbor (needs binary)
192192
result[naming_map["vd"]] = binascii.b2a_base64(self._value, newline=False).decode(
193193
"utf8"
194194
)

python-stdlib/hmac/test_hmac.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# codespell:ignore
12
import hmac
23

34
# Uncomment to use micropython-lib hashlib (supports sha512)

unix-ffi/email.parser/email/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __init__(self, _class=Message, policy=compat32):
2323
textual representation of the message.
2424
2525
The string must be formatted as a block of RFC 2822 headers and header
26-
continuation lines, optionally preceeded by a `Unix-from' header. The
26+
continuation lines, optionally preceded by a `Unix-from' header. The
2727
header block is terminated either by the end of the string or by a
2828
blank line.
2929
@@ -85,7 +85,7 @@ def __init__(self, *args, **kw):
8585
textual representation of the message.
8686
8787
The input must be formatted as a block of RFC 2822 headers and header
88-
continuation lines, optionally preceeded by a `Unix-from' header. The
88+
continuation lines, optionally preceded by a `Unix-from' header. The
8989
header block is terminated either by the end of the input or by a
9090
blank line.
9191

unix-ffi/html.parser/html/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def parse_endtag(self, i):
445445
tagname = namematch.group().lower()
446446
# consume and ignore other stuff between the name and the >
447447
# Note: this is not 100% correct, since we might have things like
448-
# </tag attr=">">, but looking for > after tha name should cover
448+
# </tag attr=">">, but looking for > after the name should cover
449449
# most of the cases and is much simpler
450450
gtpos = rawdata.find(">", namematch.end())
451451
self.handle_endtag(tagname)

unix-ffi/http.client/http/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,10 +1038,10 @@ def putrequest(self, method, url, skip_host=0, skip_accept_encoding=0):
10381038
self.putheader("Accept-Encoding", "identity")
10391039

10401040
# we can accept "chunked" Transfer-Encodings, but no others
1041-
# NOTE: no TE header implies *only* "chunked"
1041+
# NOTE: no 'TE' header implies *only* "chunked"
10421042
# self.putheader('TE', 'chunked')
10431043

1044-
# if TE is supplied in the header, then it must appear in a
1044+
# if 'TE' is supplied in the header, then it must appear in a
10451045
# Connection header.
10461046
# self.putheader('Connection', 'TE')
10471047

0 commit comments

Comments
 (0)