@@ -103,7 +103,7 @@ def delta_chunk_apply(dc, bbuf, write):
103103 write (bbuf [dc .so :dc .so + dc .ts ])
104104 else :
105105 # APPEND DATA
106- # whats faster: if + 4 function calls or just a write with a slice ?
106+ # what's faster: if + 4 function calls or just a write with a slice ?
107107 # Considering data can be larger than 127 bytes now, it should be worth it
108108 if dc .ts < len (dc .data ):
109109 write (dc .data [:dc .ts ])
@@ -292,7 +292,7 @@ def check_integrity(self, target_size=-1):
292292 """Verify the list has non-overlapping chunks only, and the total size matches
293293 target_size
294294 :param target_size: if not -1, the total size of the chain must be target_size
295- :raise AssertionError: if the size doen 't match"""
295+ :raise AssertionError: if the size doesn 't match"""
296296 if target_size > - 1 :
297297 assert self [- 1 ].rbound () == target_size
298298 assert reduce (lambda x , y : x + y , (d .ts for d in self ), 0 ) == target_size
@@ -331,7 +331,7 @@ def connect_with_next_base(self, bdcl):
331331 cannot be changed by any of the upcoming bases anymore. Once all our
332332 chunks are marked like that, we can stop all processing
333333 :param bdcl: data chunk list being one of our bases. They must be fed in
334- consequtively and in order, towards the earliest ancestor delta
334+ consecutively and in order, towards the earliest ancestor delta
335335 :return: True if processing was done. Use it to abort processing of
336336 remaining streams if False is returned"""
337337 nfc = 0 # number of frozen chunks
@@ -624,7 +624,7 @@ def apply_delta_data(src_buf, src_buf_size, delta_buf, delta_buf_size, write):
624624
625625 :param src_buf: random access data from which the delta was created
626626 :param src_buf_size: size of the source buffer in bytes
627- :param delta_buf_size: size fo the delta buffer in bytes
627+ :param delta_buf_size: size for the delta buffer in bytes
628628 :param delta_buf: random access delta data
629629 :param write: write method taking a chunk of bytes
630630
0 commit comments