@@ -403,7 +403,7 @@ def from_io(io):
403403 raise EOFError ("empty read" )
404404 except EOFError :
405405 e = sys .exc_info ()[1 ]
406- raise EOFError ("couldnt load message header, " + e .args [0 ])
406+ raise EOFError ("couldn't load message header, " + e .args [0 ])
407407 msgtype , channel , payload = struct .unpack ("!bii" , header )
408408 return Message (msgtype , channel , io .read (payload ))
409409
@@ -634,13 +634,13 @@ def makefile(self, mode="w", proxyclose=False):
634634 return ChannelFileWrite (channel = self , proxyclose = proxyclose )
635635 elif mode == "r" :
636636 return ChannelFileRead (channel = self , proxyclose = proxyclose )
637- raise ValueError (f"mode { mode !r} not availabe " )
637+ raise ValueError (f"mode { mode !r} not available " )
638638
639639 def close (self , error = None ):
640640 """close down this channel with an optional error message.
641641 Note that closing of a channel tied to remote_exec happens
642642 automatically at the end of execution and cannot
643- be done explicitely .
643+ be done explicitly .
644644 """
645645 if self ._executing :
646646 raise OSError ("cannot explicitly close channel within remote_exec" )
@@ -760,7 +760,7 @@ def new(self, id=None):
760760 """create a new Channel with 'id' (or create new id if None)."""
761761 with self ._writelock :
762762 if self .finished :
763- raise OSError (f"connexion already closed: { self .gateway } " )
763+ raise OSError (f"connection already closed: { self .gateway } " )
764764 if id is None :
765765 id = self .count
766766 self .count += 2
@@ -1130,7 +1130,7 @@ def load(self, versioned=False):
11301130 loader = self .num2func [opcode ]
11311131 except KeyError :
11321132 raise LoadError (
1133- "unkown opcode %r - " "wire protocol corruption?" % (opcode ,)
1133+ "unknown opcode %r - " "wire protocol corruption?" % (opcode ,)
11341134 )
11351135 loader (self )
11361136 except _Stop :
@@ -1331,7 +1331,7 @@ def __init__(self, write=None):
13311331 def save (self , obj , versioned = False ):
13321332 # calling here is not re-entrant but multiple instances
13331333 # may write to the same stream because of the common platform
1334- # atomic-write guaruantee (concurrent writes each happen atomicly )
1334+ # atomic-write guarantee (concurrent writes each happen atomically )
13351335 if versioned :
13361336 self ._write (DUMPFORMAT_VERSION )
13371337 self ._save (obj )
0 commit comments