Skip to content

Commit 9e731d8

Browse files
docs: fix a few simple typos (#649)
There are small typos in: - README.rst - examples/common/async_asyncio_client.py - examples/common/async_asyncio_serial_client.py - examples/common/asynchronous_processor.py - examples/contrib/asynchronous_asyncio_modbus_tls_client.py - examples/contrib/bcd_payload.py - examples/contrib/concurrent_client.py - examples/contrib/message_parser.py - examples/contrib/modbus_saver.py - examples/contrib/modbus_simulator.py - examples/contrib/modbus_tls_client.py - examples/contrib/modicon_payload.py - examples/contrib/remote_server_context.py - examples/gui/bottle/frontend.py - examples/gui/bottle/media/js/backbone.js - examples/tools/build_datastore.py - pymodbus/client/sync.py - pymodbus/constants.py - pymodbus/datastore/context.py - pymodbus/datastore/store.py - pymodbus/device.py - pymodbus/payload.py - pymodbus/repl/client/mclient.py - pymodbus/utilities.py - test/test_server_sync.py Fixes: - Should read `necessary` rather than `neccessary`. - Should read `separated` rather than `seperated`. - Should read `response` rather than `reponse`. - Should read `existence` rather than `existance`. - Should read `continuously` rather than `continuosly`. - Should read `asyncio` rather than `ayncio`. - Should read `singleton` rather than `singleotn`. - Should read `repository` rather than `respository`. - Should read `recommended` rather than `recomended`. - Should read `received` rather than `recieved`. - Should read `processing` rather than `procesing`. - Should read `preferred` rather than `prefered`. - Should read `pickled` rather than `pickeld`. - Should read `optional` rather than `optinoal`. - Should read `message` rather than `messge`. - Should read `initially` rather than `intially`. - Should read `initialized` rather than `initialied`. - Should read `initial` rather than `intial`. Closes #642 Co-authored-by: dhoomakethu <otlasanju@gmail.com>
1 parent c8125c8 commit 9e731d8

25 files changed

+30
-30
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ For those of you that just want to get started fast, here you go::
8989
client.close()
9090

9191
For more advanced examples, check out the `Examples <https://pymodbus.readthedocs.io/en/dev/source/example/modules.html>`_ included in the
92-
respository. If you have created any utilities that meet a specific
92+
repository. If you have created any utilities that meet a specific
9393
need, feel free to submit them so others can benefit.
9494

9595
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -113,7 +113,7 @@ get lost in the noise: http://groups.google.com/group/pymodbus or
113113
at gitter: https://gitter.im/pymodbus_dev/Lobby
114114

115115
.. important::
116-
**Note For async clients, it is recomended to use `asyncio` as the async facilitator (Python 3.6 and above).**
116+
**Note For async clients, it is recommended to use `asyncio` as the async facilitator (Python 3.6 and above).**
117117
**If using tornado make sure the tornado version is `4.5.3`.Other versions of tornado can break the implementation**
118118

119119

examples/common/async_asyncio_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
--------------------------------------------------------------------------
55
66
The following is an example of how to use the asynchronous modbus
7-
client implementation from pymodbus with ayncio.
7+
client implementation from pymodbus with asyncio.
88
99
The example is only valid on Python3.4 and above
1010
"""

examples/common/async_asyncio_serial_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
--------------------------------------------------------------------------
55
66
The following is an example of how to use the asynchronous serial modbus
7-
client implementation from pymodbus with ayncio.
7+
client implementation from pymodbus with asyncio.
88
99
The example is only valid on Python3.4 and above
1010
"""

examples/common/asynchronous_processor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
free to use it as a skeleton guide in implementing your own.
88
"""
99
# --------------------------------------------------------------------------- #
10-
# import the neccessary modules
10+
# import the necessary modules
1111
# --------------------------------------------------------------------------- #
1212
from twisted.internet import serialport, reactor
1313
from twisted.internet.protocol import ClientFactory
@@ -46,7 +46,7 @@
4646
# --------------------------------------------------------------------------- #
4747
# an example custom protocol
4848
# --------------------------------------------------------------------------- #
49-
# Here you can perform your main procesing loop utilizing defereds and timed
49+
# Here you can perform your main processing loop utilizing defereds and timed
5050
# callbacks.
5151
# --------------------------------------------------------------------------- #
5252
class ExampleProtocol(ModbusClientProtocol):

examples/contrib/asynchronous_asyncio_modbus_tls_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
the TLS feature and asyncio.
99
"""
1010
# -------------------------------------------------------------------------- #
11-
# import neccessary libraries
11+
# import necessary libraries
1212
# -------------------------------------------------------------------------- #
1313
import ssl
1414
from pymodbus.client.asynchronous.tls import AsyncModbusTLSClient

examples/contrib/bcd_payload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def add_string(self, value):
142142
class BcdPayloadDecoder(object):
143143
"""
144144
A utility that helps decode binary coded decimal payload
145-
messages from a modbus reponse message. What follows is
145+
messages from a modbus response message. What follows is
146146
a simple example::
147147
148148
decoder = BcdPayloadDecoder(payload)

examples/contrib/concurrent_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from futures import Future
2727

2828
# -------------------------------------------------------------------------- #
29-
# import neccessary modbus libraries
29+
# import necessary modbus libraries
3030
# -------------------------------------------------------------------------- #
3131
from pymodbus.client.common import ModbusClientMixin
3232

examples/contrib/message_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(self, framer, encode=False):
5353
def decode(self, message):
5454
""" Attempt to decode the supplied message
5555
56-
:param message: The messge to decode
56+
:param message: The message to decode
5757
"""
5858
if IS_PYTHON3:
5959
value = message if self.encode else c.encode(message, 'hex_codec')

examples/contrib/modbus_saver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
class ModbusDatastoreSaver(object):
3434
""" An abstract base class that can be used to implement
3535
a persistance format for the modbus server context. In
36-
order to use it, just complete the neccessary callbacks
36+
order to use it, just complete the necessary callbacks
3737
(SAX style) that your persistance format needs.
3838
"""
3939

examples/contrib/modbus_simulator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def parse(self):
8585
""" Parses the config file and creates a server context
8686
"""
8787
handle = pickle.load(self.file)
88-
try: # test for existance, or bomb
88+
try: # test for existence, or bomb
8989
dsd = handle['di']
9090
csd = handle['ci']
9191
hsd = handle['hr']

0 commit comments

Comments
 (0)