| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,7 @@ def _init_externals(): | |||
| 21 | 21 | except ImportError as e: | |
| 22 | 22 | raise ImportError("'%s' could not be imported, assure it is located in your PYTHONPATH" % module) from e | |
| 23 | 23 | # END verify import | |
| 24 | - # END handel imports | ||
| 24 | + # END handle imports | ||
| 25 | 25 | ||
| 26 | 26 | #} END initialization | |
| 27 | 27 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -131,7 +131,7 @@ def store(self, istream): | |||
| 131 | 131 | ||
| 132 | 132 | def update_cache(self, force=False): | |
| 133 | 133 | """ | |
| 134 | - Update our cache with the acutally existing packs on disk. Add new ones, | ||
| 134 | + Update our cache with the actually existing packs on disk. Add new ones, | ||
| 135 | 135 | and remove deleted ones. We keep the unchanged ones | |
| 136 | 136 | ||
| 137 | 137 | :param force: If True, the cache will be updated even though the directory | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -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 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -224,7 +224,7 @@ def write(self, pack_sha, write): | |||
| 224 | 224 | if ofs > 0x7fffffff: | |
| 225 | 225 | tmplist.append(ofs) | |
| 226 | 226 | ofs = 0x80000000 + len(tmplist) - 1 | |
| 227 | - # END hande 64 bit offsets | ||
| 227 | + # END handle 64 bit offsets | ||
| 228 | 228 | sha_write(pack('>L', ofs & 0xffffffff)) | |
| 229 | 229 | # END for each offset | |
| 230 | 230 | ||
@@ -506,7 +506,7 @@ class PackFile(LazyMixin): | |||
| 506 | 506 | """A pack is a file written according to the Version 2 for git packs | |
| 507 | 507 | ||
| 508 | 508 | As we currently use memory maps, it could be assumed that the maximum size of | |
| 509 | - packs therefor is 32 bit on 32 bit systems. On 64 bit systems, this should be | ||
| 509 | + packs therefore is 32 bit on 32 bit systems. On 64 bit systems, this should be | ||
| 510 | 510 | fine though. | |
| 511 | 511 | ||
| 512 | 512 | **Note:** at some point, this might be implemented using streams as well, or | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -289,7 +289,7 @@ def read(self, size=-1): | |||
| 289 | 289 | # They are thorough, and I assume it is truly working. | |
| 290 | 290 | # Why is this logic as convoluted as it is ? Please look at the table in | |
| 291 | 291 | # https://github.com/gitpython-developers/gitdb/issues/19 to learn about the test-results. | |
| 292 | - # Bascially, on py2.6, you want to use branch 1, whereas on all other python version, the second branch | ||
| 292 | + # Basically, on py2.6, you want to use branch 1, whereas on all other python version, the second branch | ||
| 293 | 293 | # will be the one that works. | |
| 294 | 294 | # However, the zlib VERSIONs as well as the platform check is used to further match the entries in the | |
| 295 | 295 | # table in the github issue. This is it ... it was the only way I could make this work everywhere. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -107,7 +107,7 @@ def _assert_object_writing(self, db): | |||
| 107 | 107 | ||
| 108 | 108 | # DIRECT STREAM COPY | |
| 109 | 109 | # our data hase been written in object format to the StringIO | |
| 110 | - # we pasesd as output stream. No physical database representation | ||
| 110 | + # we passed as output stream. No physical database representation | ||
| 111 | 111 | # was created. | |
| 112 | 112 | # Test direct stream copy of object streams, the result must be | |
| 113 | 113 | # identical to what we fed in | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -80,7 +80,7 @@ def test_writing(self, path): | |||
| 80 | 80 | # END for each sha to find | |
| 81 | 81 | ||
| 82 | 82 | # we should have at least one ambiguous, considering the small sizes | |
| 83 | - # but in our pack, there is no ambigious ... | ||
| 83 | + # but in our pack, there is no ambiguous ... | ||
| 84 | 84 | # assert num_ambiguous | |
| 85 | 85 | ||
| 86 | 86 | # non-existing | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -101,7 +101,7 @@ def _assert_pack_file(self, pack, version, size): | |||
| 101 | 101 | dstream = DeltaApplyReader.new(streams) | |
| 102 | 102 | except ValueError: | |
| 103 | 103 | # ignore these, old git versions use only ref deltas, | |
| 104 | - # which we havent resolved ( as we are without an index ) | ||
| 104 | + # which we haven't resolved ( as we are without an index ) | ||
| 105 | 105 | # Also ignore non-delta streams | |
| 106 | 106 | continue | |
| 107 | 107 | # END get deltastream | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -182,7 +182,7 @@ def file_contents_ro(fd, stream=False, allow_mmap=True): | |||
| 182 | 182 | pass | |
| 183 | 183 | # END exception handling | |
| 184 | 184 | ||
| 185 | - # read manully | ||
| 185 | + # read manually | ||
| 186 | 186 | contents = os.read(fd, os.fstat(fd).st_size) | |
| 187 | 187 | if stream: | |
| 188 | 188 | return _RandomAccessBytesIO(contents) | |
@@ -248,7 +248,7 @@ class LazyMixin(object): | |||
| 248 | 248 | def __getattr__(self, attr): | |
| 249 | 249 | """ | |
| 250 | 250 | Whenever an attribute is requested that we do not know, we allow it | |
| 251 | - to be created and set. Next time the same attribute is reqeusted, it is simply | ||
| 251 | + to be created and set. Next time the same attribute is requested, it is simply | ||
| 252 | 252 | returned from our dict/slots. """ | |
| 253 | 253 | self._set_cache_(attr) | |
| 254 | 254 | # will raise in case the cache was not created | |
@@ -332,7 +332,7 @@ def open(self, write=False, stream=False): | |||
| 332 | 332 | ||
| 333 | 333 | # open actual file if required | |
| 334 | 334 | if self._fd is None: | |
| 335 | - # we could specify exlusive here, as we obtained the lock anyway | ||
| 335 | + # we could specify exclusive here, as we obtained the lock anyway | ||
| 336 | 336 | try: | |
| 337 | 337 | self._fd = os.open(self._filepath, os.O_RDONLY | binary) | |
| 338 | 338 | except: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments