Skip to content

Commit 6224f71

Browse files
Fix typos in comments (#1233)
Fix typos
1 parent 8b3af2a commit 6224f71

37 files changed

+81
-81
lines changed

examples/client_payload.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ async def run_payload_calls(client):
2727
If you need to build a complex message to send, you can use the payload
2828
builder to simplify the packing logic
2929
30-
Packing/unpacking depends on your CPU´s word/byte order. Modbus messages
31-
are always using big endian. BinaryPayloadBuilder will pr default use
30+
Packing/unpacking depends on your CPU's word/byte order. Modbus messages
31+
are always using big endian. BinaryPayloadBuilder will per default use
3232
what your CPU uses.
3333
The wordorder is applicable only for 32 and 64 bit values
3434
Lets say we need to write a value 0x12345678 to a 32 bit register

examples/server_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def setup_server(args):
121121
# ----------------------------------------------------------------------- #
122122
# initialize the server information
123123
# ----------------------------------------------------------------------- #
124-
# If you don"t set this or any fields, they are defaulted to empty strings.
124+
# If you don't set this or any fields, they are defaulted to empty strings.
125125
# ----------------------------------------------------------------------- #
126126
args.identity = ModbusDeviceIdentification(
127127
info_name={

examples/v2.5.3/asynchronous_asyncio_modbus_tls_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
sslctx.verify_mode = ssl.CERT_REQUIRED
2323
sslctx.check_hostname = True
2424

25-
# Prepare client"s certificate which the server requires for TLS full handshake
25+
# Prepare client's certificate which the server requires for TLS full handshake
2626
# sslctx.load_cert_chain(certfile="client.crt", keyfile="client.key",
2727
# password="pwd")
2828

examples/v2.5.3/concurrent_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def execute(self, request):
218218
of the call.
219219
220220
:param request: The request to execute
221-
:returns: A future linked to the call"s response
221+
:returns: A future linked to the call's response
222222
"""
223223
fut, work_id = Future(), next(self.counter)
224224
self.input_queue.put(WorkRequest(request, work_id))

examples/v2.5.3/custom_synchronous_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def run_server():
103103
# ----------------------------------------------------------------------- #
104104
# initialize the server information
105105
# ----------------------------------------------------------------------- #
106-
# If you don"t set this or any fields, they are defaulted to empty strings.
106+
# If you don't set this or any fields, they are defaulted to empty strings.
107107
# ----------------------------------------------------------------------- #
108108
identity = ModbusDeviceIdentification(
109109
info_name={

examples/v2.5.3/deviceinfo_showcase_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def run_server():
4848
# ----------------------------------------------------------------------- #
4949
# initialize the server information
5050
# ----------------------------------------------------------------------- #
51-
# If you don"t set this or any fields, they are defaulted to empty strings.
51+
# If you don't set this or any fields, they are defaulted to empty strings.
5252
# ----------------------------------------------------------------------- #
5353
identity = ModbusDeviceIdentification(
5454
info_name={

examples/v2.5.3/libmodbus_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class NotImplementedException(Exception):
142142
class LibmodbusLevel1Client:
143143
"""A raw wrapper around the libmodbus c library.
144144
145-
Feel free to use it if you want increased performance and don"t mind the
145+
Feel free to use it if you want increased performance and don't mind the
146146
entire protocol not being implemented.
147147
"""
148148

examples/v2.5.3/modbus_simulator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
# -------------------------------------------------------------------------- #
2323
# Extra Global Functions
2424
# -------------------------------------------------------------------------- #
25-
# These are extra helper functions that don"t belong in a class
25+
# These are extra helper functions that don't belong in a class
2626
# -------------------------------------------------------------------------- #
2727
# import getpass
2828

2929

3030
def root_test():
3131
"""Check to see if we are running as root"""
32-
return True # removed for the time being as it isn"t portable
32+
return True # removed for the time being as it isn't portable
3333
# return getpass.getuser() == "root"
3434

3535

examples/v2.5.3/modbus_tls_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
sslctx.verify_mode = ssl.CERT_REQUIRED
2121
sslctx.check_hostname = True
2222

23-
# Prepare client"s certificate which the server requires for TLS full handshake
23+
# Prepare client's certificate which the server requires for TLS full handshake
2424
# sslctx.load_cert_chain(certfile="client.crt", keyfile="client.key",
2525
# password="pwd")
2626

examples/v2.5.3/remote_server_context.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def __contains__(self, slave):
198198
:param slave: slave The slave to check for existence
199199
:returns: True if the slave exists, False otherwise
200200
"""
201-
# we don"t want to check the cache here as the
201+
# we don't want to check the cache here as the
202202
# slave may not exist yet or may not exist any
203203
# more. The best thing to do is try and fail.
204204
return True
@@ -209,14 +209,14 @@ def __setitem__(self, slave, context):
209209
:param slave: The slave context to set
210210
:param context: The new context to set for this slave
211211
"""
212-
raise NotImplementedException() # doesn"t make sense here
212+
raise NotImplementedException() # doesn't make sense here
213213

214214
def __delitem__(self, slave):
215215
"""Use to access the slave context
216216
217217
:param slave: The slave context to remove
218218
"""
219-
raise NotImplementedException() # doesn"t make sense here
219+
raise NotImplementedException() # doesn't make sense here
220220

221221
def __getitem__(self, slave):
222222
"""Use to get access to a slave context

0 commit comments

Comments
 (0)