@@ -103,7 +103,7 @@ def delta_chunk_apply(dc, bbuf, write):
103
103
write (bbuf [dc .so :dc .so + dc .ts ])
104
104
else :
105
105
# 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 ?
107
107
# Considering data can be larger than 127 bytes now, it should be worth it
108
108
if dc .ts < len (dc .data ):
109
109
write (dc .data [:dc .ts ])
@@ -292,7 +292,7 @@ def check_integrity(self, target_size=-1):
292
292
"""Verify the list has non-overlapping chunks only, and the total size matches
293
293
target_size
294
294
: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"""
296
296
if target_size > - 1 :
297
297
assert self [- 1 ].rbound () == target_size
298
298
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):
331
331
cannot be changed by any of the upcoming bases anymore. Once all our
332
332
chunks are marked like that, we can stop all processing
333
333
: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
335
335
:return: True if processing was done. Use it to abort processing of
336
336
remaining streams if False is returned"""
337
337
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):
624
624
625
625
:param src_buf: random access data from which the delta was created
626
626
: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
628
628
:param delta_buf: random access delta data
629
629
:param write: write method taking a chunk of bytes
630
630
0 commit comments