Skip to content

Commit e382968

Browse files
authored
Fix typos (#546)
1 parent 2152dad commit e382968

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

awscrt/mqtt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class Connection(NativeResource):
228228
The `session_present` bool in the connection callback informs
229229
whether an existing session was successfully resumed.
230230
If an existing session is resumed, the server remembers previous subscriptions
231-
and sends mesages (with QoS1 or higher) that were published while the client was offline.
231+
and sends messages (with QoS1 or higher) that were published while the client was offline.
232232
233233
on_connection_interrupted: Optional callback invoked whenever the MQTT connection is lost.
234234
The MQTT client will automatically attempt to reconnect.

awscrt/mqtt5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2015,7 +2015,7 @@ def new_connection(self, on_connection_interrupted=None, on_connection_resumed=N
20152015
protocol_operation_timeout_ms=self.adapter_options.ack_timeout_secs * 1000,
20162016
socket_options=self.adapter_options.socket_options,
20172017

2018-
# For the arugments below, set it to `None` will directly use the options from mqtt5 client underlying.
2018+
# For the arguments below, set it to `None` will directly use the options from mqtt5 client underlying.
20192019
will=None,
20202020
username=None,
20212021
password=None,

codebuild/mqtt5_test_setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ else
9191

9292
return 1
9393
fi
94-
# Set the certificate and key paths (absolute paths for best compatbility)
94+
# Set the certificate and key paths (absolute paths for best compatibility)
9595
export AWS_TEST_MQTT5_CERTIFICATE_FILE="${PWD}/crt_certificate.pem"
9696
export AWS_TEST_MQTT5_KEY_FILE="${PWD}/crt_privatekey.pem"
9797

mqtt_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def on_receive_message(topic, payload, dup, qos, retain, **kwargs):
122122
assert(publish_results['packet_id'] == publish_packet_id)
123123

124124
# Receive Message
125-
print("Waiting to receive messsage")
125+
print("Waiting to receive message")
126126
assert(receive_event.wait(TIMEOUT))
127127
assert(receive_results['topic'] == TOPIC)
128128
assert(receive_results['payload'].decode() == MESSAGE)

s3_benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def on_body(offset, chunk, **kwargs):
130130
# if not os.path.exists(file_name):
131131
# open(file_name, 'a').close()
132132
# with open(file_name, 'rb+') as f:
133-
# # seems like the seek here may srew up the file.
133+
# # seems like the seek here may screw up the file.
134134
# f.seek(offset)
135135
# f.write(chunk)
136136

source/module.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ int PyObject_GetAttrAsIntEnum(PyObject *o, const char *class_name, const char *a
4141

4242
/* Checks if the named attribute is None, converts it to the specified type, then stores
4343
* the value and returns a pointer to the stored value or NULL if it doesn't exist or fails.
44-
* If conversion cannot occur a python exception is set (check PyExc_Occured()) */
44+
* If conversion cannot occur a python exception is set (check PyExc_Occurred()) */
4545
uint64_t *PyObject_GetAsOptionalUint64(
4646
PyObject *o,
4747
const char *class_name,

test/test_s3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def test_cross_proc(self):
9090
process = Process(target=cross_proc_task)
9191
process.start()
9292
process.join()
93-
# aquiring this lock in a sub-process should fail since we
93+
# acquiring this lock in a sub-process should fail since we
9494
# already hold the lock in this process.
9595
self.assertNotEqual(0, process.exitcode)
9696

0 commit comments

Comments
 (0)