| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
93 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | import sqlite3 | |
| 2 | 2 | ||
| 3 | 3 | # The shared cache is only available in SQLite versions 3.3.3 or later | |
| 4 | - # See the SQLite documentaton for details. | ||
| 4 | + # See the SQLite documentation for details. | ||
| 5 | 5 | ||
| 6 | 6 | sqlite3.enable_shared_cache(True) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -468,7 +468,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ | |||
| 468 | 468 | arbitrary data. | |
| 469 | 469 | ||
| 470 | 470 | 0 is returned on success. buffer and buffer_len are only | |
| 471 | - set in case no error occurrs. Otherwise, -1 is returned and | ||
| 471 | + set in case no error occurs. Otherwise, -1 is returned and | ||
| 472 | 472 | an exception set. | |
| 473 | 473 | */ | |
| 474 | 474 | ||
@@ -482,7 +482,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ | |||
| 482 | 482 | writable memory location in buffer of size buffer_len. | |
| 483 | 483 | ||
| 484 | 484 | 0 is returned on success. buffer and buffer_len are only | |
| 485 | - set in case no error occurrs. Otherwise, -1 is returned and | ||
| 485 | + set in case no error occurs. Otherwise, -1 is returned and | ||
| 486 | 486 | an exception set. | |
| 487 | 487 | */ | |
| 488 | 488 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -61,7 +61,7 @@ | |||
| 61 | 61 | # endif | |
| 62 | 62 | ||
| 63 | 63 | # if defined(__LP64__) | |
| 64 | - /* MacOSX 10.4 (the first release to suppport 64-bit code | ||
| 64 | + /* MacOSX 10.4 (the first release to support 64-bit code | ||
| 65 | 65 | * at all) only supports 64-bit in the UNIX layer. | |
| 66 | 66 | * Therefore surpress the toolbox-glue in 64-bit mode. | |
| 67 | 67 | */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -284,7 +284,7 @@ def _guess_delimiter(self, data, delimiters): | |||
| 284 | 284 | an all or nothing approach, so we allow for small variations in this | |
| 285 | 285 | number. | |
| 286 | 286 | 1) build a table of the frequency of each character on every line. | |
| 287 | - 2) build a table of freqencies of this frequency (meta-frequency?), | ||
| 287 | + 2) build a table of frequencies of this frequency (meta-frequency?), | ||
| 288 | 288 | e.g. 'x occurred 5 times in 10 rows, 6 times in 1000 rows, | |
| 289 | 289 | 7 times in 2 rows' | |
| 290 | 290 | 3) use the mode of the meta-frequency to determine the /expected/ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,7 +37,7 @@ def test_simple(self): | |||
| 37 | 37 | values = [ia[i] for i in range(len(init))] | |
| 38 | 38 | self.assertEqual(values, [0] * len(init)) | |
| 39 | 39 | ||
| 40 | - # Too many in itializers should be caught | ||
| 40 | + # Too many initializers should be caught | ||
| 41 | 41 | self.assertRaises(IndexError, int_array, *range(alen*2)) | |
| 42 | 42 | ||
| 43 | 43 | CharArray = ARRAY(c_char, 3) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,7 +27,7 @@ def test_get(self): | |||
| 27 | 27 | self.assertEqual((y.x.a, y.x.b), (0, 0)) | |
| 28 | 28 | self.assertEqual(y.x.new_was_called, False) | |
| 29 | 29 | ||
| 30 | - # But explicitely creating an X structure calls __new__ and __init__, of course. | ||
| 30 | + # But explicitly creating an X structure calls __new__ and __init__, of course. | ||
| 31 | 31 | x = X() | |
| 32 | 32 | self.assertEqual((x.a, x.b), (9, 12)) | |
| 33 | 33 | self.assertEqual(x.new_was_called, True) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -157,7 +157,7 @@ def test_alignments(self): | |||
| 157 | 157 | def test_int_from_address(self): | |
| 158 | 158 | from array import array | |
| 159 | 159 | for t in signed_types + unsigned_types: | |
| 160 | - # the array module doesn't suppport all format codes | ||
| 160 | + # the array module doesn't support all format codes | ||
| 161 | 161 | # (no 'q' or 'Q') | |
| 162 | 162 | try: | |
| 163 | 163 | array(t._type_) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,7 +17,7 @@ def test_callconv_1(self): | |||
| 17 | 17 | # ValueError: Procedure probably called with not enough arguments (4 bytes missing) | |
| 18 | 18 | self.assertRaises(ValueError, IsWindow) | |
| 19 | 19 | ||
| 20 | - # This one should succeeed... | ||
| 20 | + # This one should succeed... | ||
| 21 | 21 | self.assertEqual(0, IsWindow(0)) | |
| 22 | 22 | ||
| 23 | 23 | # ValueError: Procedure probably called with too many arguments (8 bytes in excess) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1719,7 +1719,7 @@ def expand_tabs(line): | |||
| 1719 | 1719 | line = line.replace(' ','\0') | |
| 1720 | 1720 | # expand tabs into spaces | |
| 1721 | 1721 | line = line.expandtabs(self._tabsize) | |
| 1722 | - # relace spaces from expanded tabs back into tab characters | ||
| 1722 | + # replace spaces from expanded tabs back into tab characters | ||
| 1723 | 1723 | # (we'll replace them with markup after we do differencing) | |
| 1724 | 1724 | line = line.replace(' ','\t') | |
| 1725 | 1725 | return line.replace('\0',' ').rstrip('\n') | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -359,7 +359,7 @@ def copy_tree(self, infile, outfile, preserve_mode=1, preserve_times=1, | |||
| 359 | 359 | not self.force, dry_run=self.dry_run) | |
| 360 | 360 | ||
| 361 | 361 | def move_file (self, src, dst, level=1): | |
| 362 | - """Move a file respectin dry-run flag.""" | ||
| 362 | + """Move a file respecting dry-run flag.""" | ||
| 363 | 363 | return file_util.move_file(src, dst, dry_run=self.dry_run) | |
| 364 | 364 | ||
| 365 | 365 | def spawn(self, cmd, search_path=1, level=1): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments