@@ -211,7 +211,7 @@ class SourceHandler:
211211 source-to-destination file transfer. This class does not send the CFDP PDU packets directly
212212 to allow for greater flexibility. For example, a user might want to wrap the CFDP packet
213213 entities into a CCSDS space packet or into a special frame type. The handler can handle
214- both unacknowledged (class 1) and acknowledged (class 2) file tranfers .
214+ both unacknowledged (class 1) and acknowledged (class 2) file transfers .
215215
216216 The following core functions are the primary interface:
217217
@@ -308,10 +308,10 @@ def num_packets_ready(self) -> int:
308308 def put_request (self , request : PutRequest ) -> bool :
309309 """This function is used to pass a put request to the source handler, which is
310310 also used to start a file copy operation. As such, this function models the Put.request
311- CFDP primtiive .
311+ CFDP primitive .
312312
313313 Please note that the source handler can also process one put request at a time.
314- The caller is responsible of creating a new source handler, one handler can only handle
314+ The caller is responsible for creating a new source handler, one handler can only handle
315315 one file copy request at a time.
316316
317317
@@ -328,7 +328,7 @@ def put_request(self, request: PutRequest) -> bool:
328328 Returns
329329 --------
330330
331- False if the handler is busy. True if the handling of the request was successfull .
331+ False if the handler is busy. True if the handling of the request was finished successfully .
332332 """
333333 if self .states .state != CfdpState .IDLE :
334334 _LOGGER .debug ("CFDP source handler is busy, can't process put request" )
@@ -483,7 +483,7 @@ def transaction_id(self) -> TransactionId | None:
483483 return self ._params .transaction_id
484484
485485 def _reset_internal (self , clear_packet_queue : bool ) -> None :
486- """This function is public to allow completely resetting the handler, but it is explicitely
486+ """This function is public to allow completely resetting the handler, but it is explicitly
487487 discouraged to do this. CFDP generally has mechanism to detect issues and errors on itself.
488488 """
489489 self .states .step = TransactionStep .IDLE
@@ -493,7 +493,7 @@ def _reset_internal(self, clear_packet_queue: bool) -> None:
493493 self ._params .reset ()
494494
495495 def reset (self ) -> None :
496- """This function is public to allow completely resetting the handler, but it is explicitely
496+ """This function is public to allow completely resetting the handler, but it is explicitly
497497 discouraged to do this. CFDP generally has mechanism to detect issues and errors on itself.
498498 """
499499 self ._reset_internal (True )
@@ -544,7 +544,7 @@ def _transaction_start(self) -> None:
544544 def _check_for_originating_id (self ) -> TransactionId | None :
545545 """This function only returns an originating ID for if not proxy put response is
546546 contained in the message to user list. This special logic is in place to avoid permanent
547- loop which would occur when the user uses the orignating ID to register active proxy put
547+ loop which would occur when the user uses the originating ID to register active proxy put
548548 request, and this ID would also be generated for proxy put responses."""
549549 contains_proxy_put_response = False
550550 contains_originating_id = False
@@ -952,7 +952,7 @@ def _declare_fault(self, cond: ConditionCode) -> None:
952952 self .cfg .default_fault_handlers .report_fault (transaction_id , cond , progress )
953953
954954 def _notice_of_cancellation (self , condition_code : ConditionCode ) -> bool :
955- """Returns whether the fault declaration handler can returns prematurely."""
955+ """Returns whether the fault declaration handler can return prematurely."""
956956 # CFDP standard 4.11.2.2.3: Any fault declared in the course of transferring
957957 # the EOF (cancel) PDU must result in abandonment of the transaction.
958958 if (
@@ -980,7 +980,7 @@ def _notice_of_suspension(self) -> None:
980980 pass
981981
982982 def _abandon_transaction (self ) -> None :
983- # I guess an abandoned transaction just stops whatever it is doing.. The implementation
983+ # I guess an abandoned transaction just stops whatever it is doing. The implementation
984984 # for this is quite easy.
985985 self .reset ()
986986
0 commit comments