| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -301,7 +301,7 @@ def _check_system_limits(): | |||
| 301 | 301 | # sysconf not available or setting not available | |
| 302 | 302 | return | |
| 303 | 303 | if nsems_max == -1: | |
| 304 | - # indetermine limit, assume that limit is determined | ||
| 304 | + # indetermined limit, assume that limit is determined | ||
| 305 | 305 | # by available memory only | |
| 306 | 306 | return | |
| 307 | 307 | if nsems_max >= 256: | |
@@ -415,7 +415,7 @@ def shutdown(self, wait=True): | |||
| 415 | 415 | self._result_queue.put(None) | |
| 416 | 416 | if wait: | |
| 417 | 417 | self._queue_management_thread.join() | |
| 418 | - # To reduce the risk of openning too many files, remove references to | ||
| 418 | + # To reduce the risk of opening too many files, remove references to | ||
| 419 | 419 | # objects that use file descriptors. | |
| 420 | 420 | self._queue_management_thread = None | |
| 421 | 421 | self._call_queue = None | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | 3 | Run all tests found in this directory, and print a summary of the results. | |
| 4 | 4 | Command line flags: | |
| 5 | - -q quiet mode: don't prnt anything while the tests are running | ||
| 5 | + -q quiet mode: don't print anything while the tests are running | ||
| 6 | 6 | -r run tests repeatedly, look for refcount leaks | |
| 7 | 7 | -u<resources> | |
| 8 | 8 | Add resources to the lits of allowed resources. '*' allows all | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -188,7 +188,7 @@ def test_void(self): | |||
| 188 | 188 | self.assertEqual(self._dll.tv_i(-42), None) | |
| 189 | 189 | self.assertEqual(self.S(), -42) | |
| 190 | 190 | ||
| 191 | - # The following repeates the above tests with stdcall functions (where | ||
| 191 | + # The following repeats the above tests with stdcall functions (where | ||
| 192 | 192 | # they are available) | |
| 193 | 193 | try: | |
| 194 | 194 | WinDLL | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -213,7 +213,7 @@ def test_char_from_address(self): | |||
| 213 | 213 | ||
| 214 | 214 | def test_init(self): | |
| 215 | 215 | # c_int() can be initialized from Python's int, and c_int. | |
| 216 | - # Not from c_long or so, which seems strange, abd should | ||
| 216 | + # Not from c_long or so, which seems strange, abc should | ||
| 217 | 217 | # probably be changed: | |
| 218 | 218 | self.assertRaises(TypeError, c_int, c_long(42)) | |
| 219 | 219 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -44,7 +44,7 @@ def func(*args): | |||
| 44 | 44 | # this is the standard refcount for func | |
| 45 | 45 | self.assertEqual(grc(func), 2) | |
| 46 | 46 | ||
| 47 | - # the CFuncPtr instance holds atr least one refcount on func: | ||
| 47 | + # the CFuncPtr instance holds at least one refcount on func: | ||
| 48 | 48 | f = OtherCallback(func) | |
| 49 | 49 | self.assertTrue(grc(func) > 2) | |
| 50 | 50 | ||
@@ -61,7 +61,7 @@ class X(ctypes.Structure): | |||
| 61 | 61 | x = X() | |
| 62 | 62 | x.a = OtherCallback(func) | |
| 63 | 63 | ||
| 64 | - # the CFuncPtr instance holds atr least one refcount on func: | ||
| 64 | + # the CFuncPtr instance holds at least one refcount on func: | ||
| 65 | 65 | self.assertTrue(grc(func) > 2) | |
| 66 | 66 | ||
| 67 | 67 | # and may release it again | |
@@ -74,7 +74,7 @@ class X(ctypes.Structure): | |||
| 74 | 74 | ||
| 75 | 75 | f = OtherCallback(func) | |
| 76 | 76 | ||
| 77 | - # the CFuncPtr instance holds atr least one refcount on func: | ||
| 77 | + # the CFuncPtr instance holds at least one refcount on func: | ||
| 78 | 78 | self.assertTrue(grc(func) > 2) | |
| 79 | 79 | ||
| 80 | 80 | # create a cycle | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -108,7 +108,7 @@ class XX(Structure): | |||
| 108 | 108 | def test_emtpy(self): | |
| 109 | 109 | # I had problems with these | |
| 110 | 110 | # | |
| 111 | - # Although these are patological cases: Empty Structures! | ||
| 111 | + # Although these are pathological cases: Empty Structures! | ||
| 112 | 112 | class X(Structure): | |
| 113 | 113 | _fields_ = [] | |
| 114 | 114 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -530,7 +530,7 @@ def handle_extra_path(self): | |||
| 530 | 530 | self.extra_dirs = extra_dirs | |
| 531 | 531 | ||
| 532 | 532 | def change_roots(self, *names): | |
| 533 | - """Change the install direcories pointed by name using root.""" | ||
| 533 | + """Change the install directories pointed by name using root.""" | ||
| 534 | 534 | for name in names: | |
| 535 | 535 | attr = "install_" + name | |
| 536 | 536 | setattr(self, attr, change_root(self.root, getattr(self, attr))) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -175,7 +175,7 @@ def get_file_list(self): | |||
| 175 | 175 | depends on the user's options. | |
| 176 | 176 | """ | |
| 177 | 177 | # new behavior when using a template: | |
| 178 | - # the file list is recalculated everytime because | ||
| 178 | + # the file list is recalculated every time because | ||
| 179 | 179 | # even if MANIFEST.in or setup.py are not changed | |
| 180 | 180 | # the user might have added some files in the tree that | |
| 181 | 181 | # need to be included. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -77,7 +77,7 @@ def compile(*args, **kw): | |||
| 77 | 77 | ||
| 78 | 78 | cmd.compiler = FakeCompiler() | |
| 79 | 79 | ||
| 80 | - # build_libraries is also doing a bit of typoe checking | ||
| 80 | + # build_libraries is also doing a bit of typo checking | ||
| 81 | 81 | lib = [('name', {'sources': 'notvalid'})] | |
| 82 | 82 | self.assertRaises(DistutilsSetupError, cmd.build_libraries, lib) | |
| 83 | 83 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,7 +35,7 @@ class Mbox: | |||
| 35 | 35 | """Mock for tkinter.messagebox with an Mbox_func for each function. | |
| 36 | 36 | ||
| 37 | 37 | This module was 'tkMessageBox' in 2.x; hence the 'import as' in 3.x. | |
| 38 | - Example usage in test_module.py for testing functios in module.py: | ||
| 38 | + Example usage in test_module.py for testing functions in module.py: | ||
| 39 | 39 | --- | |
| 40 | 40 | from idlelib.idle_test.mock_tk import Mbox | |
| 41 | 41 | import module | |
@@ -98,7 +98,7 @@ def _decode(self, index, endflag=0): | |||
| 98 | 98 | ||
| 99 | 99 | This implements .index without converting the result back to a string. | |
| 100 | 100 | The result is contrained by the number of lines and linelengths of | |
| 101 | - self.data. For many indexes, the result is initally (1, 0). | ||
| 101 | + self.data. For many indexes, the result is initially (1, 0). | ||
| 102 | 102 | ||
| 103 | 103 | The input index may have any of several possible forms: | |
| 104 | 104 | * line.char float: converted to 'line.char' string; | |
@@ -149,7 +149,7 @@ def _endex(self, endflag): | |||
| 149 | 149 | ||
| 150 | 150 | -1: position before terminal \n; for .insert(), .delete | |
| 151 | 151 | 0: position after terminal \n; for .get, .delete index 1 | |
| 152 | - 1: same viewed as begininning of non-existent next line (for .index) | ||
| 152 | + 1: same viewed as beginning of non-existent next line (for .index) | ||
| 153 | 153 | ''' | |
| 154 | 154 | n = len(self.data) | |
| 155 | 155 | if endflag == 1: | |
@@ -271,7 +271,7 @@ def see(self, index): | |||
| 271 | 271 | "Scroll screen to make the character at INDEX is visible." | |
| 272 | 272 | pass | |
| 273 | 273 | ||
| 274 | - # The following is a Misc method inheritet by Text. | ||
| 274 | + # The following is a Misc method inherited by Text. | ||
| 275 | 275 | # It should properly go in a Misc mock, but is included here for now. | |
| 276 | 276 | ||
| 277 | 277 | def bind(sequence=None, func=None, add=None): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments