Skip to content

Commit 98c8fa6

Browse files
committed
fix spelling
1 parent b002c56 commit 98c8fa6

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

docs/mllp.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ HL7 Sender
5656
await hl7_writer.drain()
5757
print(f'Sent message\n {hl7_message}'.replace('\r', '\n'))
5858
59-
# Now wait for the ACK message from the receiever
59+
# Now wait for the ACK message from the receiver
6060
hl7_ack = await asyncio.wait_for(
6161
hl7_reader.readmessage(),
6262
timeout=10

hl7/containers.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ class File(Container):
144144
It contains a list of :py:class:`hl7.Batch`
145145
instances. It may contain FHS/FTS :py:class:`hl7.Segment` instances.
146146
147-
Files may or may not be wrapped in FHS/FTS segements
148-
deliniating the start/end of the batch. These are optional.
147+
Files may or may not be wrapped in FHS/FTS segments
148+
delineating the start/end of the batch. These are optional.
149149
"""
150150

151151
def __init__(
@@ -209,7 +209,7 @@ def __str__(self):
209209
"""Join a the child batches into a single string, separated
210210
by the self.separator. This method acts recursively, calling
211211
the children's __unicode__ method. Thus ``unicode()`` is the
212-
approriate method for turning the python-hl7 representation of
212+
appropriate method for turning the python-hl7 representation of
213213
HL7 into a standard string.
214214
215215
If this batch has FHS/FTS segments, they will be added to the
@@ -235,8 +235,8 @@ class Batch(Container):
235235
It contains a list of :py:class:`hl7.Message` instances.
236236
It may contain BHS/BTS :py:class:`hl7.Segment` instances.
237237
238-
Batches may or may not be wrapped in BHS/BTS segements
239-
deliniating the start/end of the batch. These are optional.
238+
Batches may or may not be wrapped in BHS/BTS segments
239+
delineating the start/end of the batch. These are optional.
240240
"""
241241

242242
def __init__(
@@ -300,7 +300,7 @@ def __str__(self):
300300
"""Join a the child messages into a single string, separated
301301
by the self.separator. This method acts recursively, calling
302302
the children's __unicode__ method. Thus ``unicode()`` is the
303-
approriate method for turning the python-hl7 representation of
303+
appropriate method for turning the python-hl7 representation of
304304
HL7 into a standard string.
305305
306306
If this batch has BHS/BTS segments, they will be added to the
@@ -557,11 +557,11 @@ def create_ack(
557557

558558
msh.assign_field(str(source_msh(1)), 1)
559559
msh.assign_field(str(source_msh(2)), 2)
560-
# Sending application is source receving application
560+
# Sending application is source receiving application
561561
msh.assign_field(
562562
str(application) if application is not None else str(source_msh(5)), 3
563563
)
564-
# Sending facility is source receving facility
564+
# Sending facility is source receiving facility
565565
msh.assign_field(
566566
str(facility) if facility is not None else str(source_msh(6)), 4
567567
)
@@ -592,7 +592,7 @@ def __str__(self):
592592
"""Join a the child containers into a single string, separated
593593
by the self.separator. This method acts recursively, calling
594594
the children's __unicode__ method. Thus ``unicode()`` is the
595-
approriate method for turning the python-hl7 representation of
595+
appropriate method for turning the python-hl7 representation of
596596
HL7 into a standard string.
597597
598598
>>> str(hl7.parse(message)) == message

hl7/parser.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,12 +386,12 @@ class _ParsePlan:
386386

387387
# field, component, repetition, escape, subcomponent
388388

389-
def __init__(self, seperator, separators, containers, esc, factory):
389+
def __init__(self, separator, separators, containers, esc, factory):
390390
# TODO test to see performance implications of the assertion
391391
# since we generate the ParsePlan, this should never be in
392392
# invalid state
393-
assert len(containers) == len(separators[separators.find(seperator) :])
394-
self.separator = seperator
393+
assert len(containers) == len(separators[separators.find(separator) :])
394+
self.separator = separator
395395
self.separators = separators
396396
self.containers = containers
397397
self.esc = esc
@@ -411,7 +411,7 @@ def container(self, data):
411411
def next(self):
412412
"""Generate the next level of the plan (essentially generates
413413
a copy of this plan with the level of the container and the
414-
seperator starting at the next index.
414+
separator starting at the next index.
415415
"""
416416
if len(self.containers) > 1:
417417
# Return a new instance of this class using the tails of

0 commit comments

Comments
 (0)