| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -489,7 +489,7 @@ dialect_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) | |||
| 489 | 489 | } | |
| 490 | 490 | ||
| 491 | 491 | /* Since dialect is now a heap type, it inherits pickling method for | |
| 492 | - * protocol 0 and 1 from object, therefore it needs to be overriden */ | ||
| 492 | + * protocol 0 and 1 from object, therefore it needs to be overridden */ | ||
| 493 | 493 | ||
| 494 | 494 | PyDoc_STRVAR(dialect_reduce_doc, "raises an exception to avoid pickling"); | |
| 495 | 495 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -834,7 +834,7 @@ static int _call_function_pointer(int flags, | |||
| 834 | 834 | # define HAVE_FFI_PREP_CIF_VAR_RUNTIME false | |
| 835 | 835 | # endif | |
| 836 | 836 | ||
| 837 | - /* Even on Apple-arm64 the calling convention for variadic functions conincides | ||
| 837 | + /* Even on Apple-arm64 the calling convention for variadic functions coincides | ||
| 838 | 838 | * with the standard calling convention in the case that the function called | |
| 839 | 839 | * only with its fixed arguments. Thus, we do not need a special flag to be | |
| 840 | 840 | * set on variadic functions. We treat a function as variadic if it is called | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,7 +35,7 @@ PyCField_new(PyTypeObject *type, PyObject *args, PyObject *kwds) | |||
| 35 | 35 | * Expects the size, index and offset for the current field in *psize and | |
| 36 | 36 | * *poffset, stores the total size so far in *psize, the offset for the next | |
| 37 | 37 | * field in *poffset, the alignment requirements for the current field in | |
| 38 | - * *palign, and returns a field desriptor for this field. | ||
| 38 | + * *palign, and returns a field descriptor for this field. | ||
| 39 | 39 | */ | |
| 40 | 40 | /* | |
| 41 | 41 | * bitfields extension: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -208,7 +208,7 @@ typedef struct { | |||
| 208 | 208 | PyObject *checker; | |
| 209 | 209 | int flags; /* calling convention and such */ | |
| 210 | 210 | ||
| 211 | - /* pep3118 fields, pointers neeed PyMem_Free */ | ||
| 211 | + /* pep3118 fields, pointers need PyMem_Free */ | ||
| 212 | 212 | char *format; | |
| 213 | 213 | int ndim; | |
| 214 | 214 | Py_ssize_t *shape; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4527,7 +4527,7 @@ dump(PicklerObject *self, PyObject *obj) | |||
| 4527 | 4527 | * call when setting the reducer_override attribute of the Pickler instance | |
| 4528 | 4528 | * to a bound method of the same instance. This is important as the Pickler | |
| 4529 | 4529 | * instance holds a reference to each object it has pickled (through its | |
| 4530 | - * memo): thus, these objects wont be garbage-collected as long as the | ||
| 4530 | + * memo): thus, these objects won't be garbage-collected as long as the | ||
| 4531 | 4531 | * Pickler itself is not collected. */ | |
| 4532 | 4532 | Py_CLEAR(self->reducer_override); | |
| 4533 | 4533 | return status; | |
@@ -6540,7 +6540,7 @@ do_setitems(UnpicklerObject *self, Py_ssize_t x) | |||
| 6540 | 6540 | return 0; | |
| 6541 | 6541 | if ((len - x) % 2 != 0) { | |
| 6542 | 6542 | PickleState *st = _Pickle_GetGlobalState(); | |
| 6543 | - /* Currupt or hostile pickle -- we never write one like this. */ | ||
| 6543 | + /* Corrupt or hostile pickle -- we never write one like this. */ | ||
| 6544 | 6544 | PyErr_SetString(st->UnpicklingError, | |
| 6545 | 6545 | "odd number of items for SETITEMS"); | |
| 6546 | 6546 | return -1; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ | |||
| 15 | 15 | * 2001-05-14 fl fixes for 1.5.2 compatibility | |
| 16 | 16 | * 2001-07-01 fl added BIGCHARSET support (from Martin von Loewis) | |
| 17 | 17 | * 2001-10-18 fl fixed group reset issue (from Matthew Mueller) | |
| 18 | - * 2001-10-20 fl added split primitive; reenable unicode for 1.6/2.0/2.1 | ||
| 18 | + * 2001-10-20 fl added split primitive; re-enable unicode for 1.6/2.0/2.1 | ||
| 19 | 19 | * 2001-10-21 fl added sub/subn primitive | |
| 20 | 20 | * 2001-10-24 fl added finditer primitive (for 2.2 only) | |
| 21 | 21 | * 2001-12-07 fl fixed memory leak in sub/subn (Guido van Rossum) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5323,7 +5323,7 @@ encode_locale_ex(PyObject *self, PyObject *args) | |||
| 5323 | 5323 | PyErr_SetString(PyExc_ValueError, "unsupported error handler"); | |
| 5324 | 5324 | break; | |
| 5325 | 5325 | default: | |
| 5326 | - PyErr_SetString(PyExc_ValueError, "unknow error code"); | ||
| 5326 | + PyErr_SetString(PyExc_ValueError, "unknown error code"); | ||
| 5327 | 5327 | break; | |
| 5328 | 5328 | } | |
| 5329 | 5329 | return res; | |
@@ -5366,7 +5366,7 @@ decode_locale_ex(PyObject *self, PyObject *args) | |||
| 5366 | 5366 | PyErr_SetString(PyExc_ValueError, "unsupported error handler"); | |
| 5367 | 5367 | break; | |
| 5368 | 5368 | default: | |
| 5369 | - PyErr_SetString(PyExc_ValueError, "unknow error code"); | ||
| 5369 | + PyErr_SetString(PyExc_ValueError, "unknown error code"); | ||
| 5370 | 5370 | break; | |
| 5371 | 5371 | } | |
| 5372 | 5372 | return res; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1219,7 +1219,7 @@ where the corresponding signal handler will be executed.\n\ | |||
| 1219 | 1219 | If *signum* is omitted, SIGINT is assumed.\n\ | |
| 1220 | 1220 | A subthread can use this function to interrupt the main thread.\n\ | |
| 1221 | 1221 | \n\ | |
| 1222 | - Note: the default signal hander for SIGINT raises ``KeyboardInterrupt``." | ||
| 1222 | + Note: the default signal handler for SIGINT raises ``KeyboardInterrupt``." | ||
| 1223 | 1223 | ); | |
| 1224 | 1224 | ||
| 1225 | 1225 | static lockobject *newlockobject(PyObject *module); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -797,7 +797,7 @@ PyTclObject_str(PyTclObject *self) | |||
| 797 | 797 | Py_INCREF(self->string); | |
| 798 | 798 | return self->string; | |
| 799 | 799 | } | |
| 800 | - /* XXX Could chache result if it is non-ASCII. */ | ||
| 800 | + /* XXX Could cache result if it is non-ASCII. */ | ||
| 801 | 801 | return unicodeFromTclObj(self->value); | |
| 802 | 802 | } | |
| 803 | 803 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -833,7 +833,7 @@ tracemalloc_clear_filename(void *value) | |||
| 833 | 833 | static void | |
| 834 | 834 | tracemalloc_clear_traces(void) | |
| 835 | 835 | { | |
| 836 | - /* The GIL protects variables againt concurrent access */ | ||
| 836 | + /* The GIL protects variables against concurrent access */ | ||
| 837 | 837 | assert(PyGILState_Check()); | |
| 838 | 838 | ||
| 839 | 839 | TABLES_LOCK(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments