| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5364b5c commit 53f7a7c
39 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,7 @@ | |||
| 21 | 21 | print('From:', msg['from']) | |
| 22 | 22 | print('Subject:', msg['subject']) | |
| 23 | 23 | ||
| 24 | - # If we want to print a priview of the message content, we can extract whatever | ||
| 24 | + # If we want to print a preview of the message content, we can extract whatever | ||
| 25 | 25 | # the least formatted payload is and print the first three lines. Of course, | |
| 26 | 26 | # if the message has no plain text part printing the first three lines of html | |
| 27 | 27 | # is probably useless, but this is just a conceptual example. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -188,7 +188,7 @@ class Complete(Structure): | |||
| 188 | 188 | (PackedPoint, "B", (), PackedPoint), | |
| 189 | 189 | (Point2, "T{<l:x:<l:y:}".replace('l', s_long), (), Point2), | |
| 190 | 190 | (EmptyStruct, "T{}", (), EmptyStruct), | |
| 191 | - # the pep does't support unions | ||
| 191 | + # the pep doesn't support unions | ||
| 192 | 192 | (aUnion, "B", (), aUnion), | |
| 193 | 193 | # structure with sub-arrays | |
| 194 | 194 | (StructWithArrays, "T{(2,3)<l:x:(4)T{<l:x:<l:y:}:y:}".replace('l', s_long), (), StructWithArrays), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -129,7 +129,7 @@ class XX(Structure): | |||
| 129 | 129 | self.assertEqual(sizeof(XX), 0) | |
| 130 | 130 | ||
| 131 | 131 | def test_fields(self): | |
| 132 | - # test the offset and size attributes of Structure/Unoin fields. | ||
| 132 | + # test the offset and size attributes of Structure/Union fields. | ||
| 133 | 133 | class X(Structure): | |
| 134 | 134 | _fields_ = [("x", c_int), | |
| 135 | 135 | ("y", c_char)] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -173,7 +173,7 @@ def body_encode(body, maxlinelen=76, eol=NL): | |||
| 173 | 173 | if not body: | |
| 174 | 174 | return body | |
| 175 | 175 | ||
| 176 | - # quote speacial characters | ||
| 176 | + # quote special characters | ||
| 177 | 177 | body = body.translate(_QUOPRI_BODY_ENCODE_MAP) | |
| 178 | 178 | ||
| 179 | 179 | soft_break = '=' + eol | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -538,7 +538,7 @@ def _get_chunk_left(self): | |||
| 538 | 538 | chunk_left = self.chunk_left | |
| 539 | 539 | if not chunk_left: # Can be 0 or None | |
| 540 | 540 | if chunk_left is not None: | |
| 541 | - # We are at the end of chunk. dicard chunk end | ||
| 541 | + # We are at the end of chunk, discard chunk end | ||
| 542 | 542 | self._safe_read(2) # toss the CRLF at the end of the chunk | |
| 543 | 543 | try: | |
| 544 | 544 | chunk_left = self._read_next_chunk_size() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -891,7 +891,7 @@ def spawnve(mode, file, args, env): | |||
| 891 | 891 | otherwise return -SIG, where SIG is the signal that killed it. """ | |
| 892 | 892 | return _spawnvef(mode, file, args, env, execve) | |
| 893 | 893 | ||
| 894 | - # Note: spawnvp[e] is't currently supported on Windows | ||
| 894 | + # Note: spawnvp[e] isn't currently supported on Windows | ||
| 895 | 895 | ||
| 896 | 896 | def spawnvp(mode, file, args): | |
| 897 | 897 | """spawnvp(mode, file, args) -> integer | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1058,7 +1058,7 @@ def frombuf(cls, buf, encoding, errors): | |||
| 1058 | 1058 | ||
| 1059 | 1059 | # The old GNU sparse format occupies some of the unused | |
| 1060 | 1060 | # space in the buffer for up to 4 sparse structures. | |
| 1061 | - # Save the them for later processing in _proc_sparse(). | ||
| 1061 | + # Save them for later processing in _proc_sparse(). | ||
| 1062 | 1062 | if obj.type == GNUTYPE_SPARSE: | |
| 1063 | 1063 | pos = 386 | |
| 1064 | 1064 | structs = [] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4115,7 +4115,7 @@ def test_noforkbomb(self): | |||
| 4115 | 4115 | # | |
| 4116 | 4116 | ||
| 4117 | 4117 | class TestForkAwareThreadLock(unittest.TestCase): | |
| 4118 | - # We recurisvely start processes. Issue #17555 meant that the | ||
| 4118 | + # We recursively start processes. Issue #17555 meant that the | ||
| 4119 | 4119 | # after fork registry would get duplicate entries for the same | |
| 4120 | 4120 | # lock. The size of the registry at generation n was ~2**n. | |
| 4121 | 4121 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -163,7 +163,7 @@ def test_raise_string(self): | |||
| 163 | 163 | self.raise_fails("spam") | |
| 164 | 164 | ||
| 165 | 165 | def test_catch_non_BaseException(self): | |
| 166 | - # Tryinng to catch an object that does not inherit from BaseException | ||
| 166 | + # Trying to catch an object that does not inherit from BaseException | ||
| 167 | 167 | # is not allowed. | |
| 168 | 168 | class NonBaseException(object): | |
| 169 | 169 | pass | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -617,7 +617,7 @@ class C: | |||
| 617 | 617 | with self.assertRaisesRegex(TypeError, r'C\(\).__init__\(\) takes no arguments'): | |
| 618 | 618 | object.__init__(C(), 42) | |
| 619 | 619 | ||
| 620 | - # Class with both `__init__` & `__new__` method overriden | ||
| 620 | + # Class with both `__init__` & `__new__` method overridden | ||
| 621 | 621 | class D: | |
| 622 | 622 | def __new__(cls, *args, **kwargs): | |
| 623 | 623 | super().__new__(cls, *args, **kwargs) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments