summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-04-14 06:30:01 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2015-04-14 06:30:01 (GMT)
commit4882cacab6bcaf90ac496fc8878987598e7665c1 (patch)
tree6dab1cbde4725b432bb3fd06e329d003c6a83376 /Modules
parent52a3b74900db90dfbc5d6ce5145bce02d172b1b1 (diff)
downloadcpython-4882cacab6bcaf90ac496fc8878987598e7665c1.zip
cpython-4882cacab6bcaf90ac496fc8878987598e7665c1.tar.gz
cpython-4882cacab6bcaf90ac496fc8878987598e7665c1.tar.bz2
Issue #23943: Fix typos. Patch by Piotr Kasprzyk.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/_ctypes.c2
-rw-r--r--Modules/_ctypes/ctypes.h2
-rw-r--r--Modules/_ctypes/libffi/ltmain.sh2
3 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c
index 558abe3..2e5939c 100644
--- a/Modules/_ctypes/_ctypes.c
+++ b/Modules/_ctypes/_ctypes.c
@@ -3862,7 +3862,7 @@ PyCFuncPtr_call(PyCFuncPtrObject *self, PyObject *inargs, PyObject *kwds)
self,
callargs,
NULL);
- /* If the errcheck funtion failed, return NULL.
+ /* If the errcheck function failed, return NULL.
If the errcheck function returned callargs unchanged,
continue normal processing.
If the errcheck function returned something else,
diff --git a/Modules/_ctypes/ctypes.h b/Modules/_ctypes/ctypes.h
index de6c764..0d3f724 100644
--- a/Modules/_ctypes/ctypes.h
+++ b/Modules/_ctypes/ctypes.h
@@ -191,7 +191,7 @@ typedef struct {
remember is that in PyCArrayType_new the ffi_type fields must be filled in -
so far it was unneeded because libffi doesn't support arrays at all
(because they are passed as pointers to function calls anyway). But it's
- too much risk to change that now, and there are other fields which doen't
+ too much risk to change that now, and there are other fields which doesn't
belong into this structure anyway. Maybe in ctypes 2.0... (ctypes 2000?)
*/
Py_ssize_t size; /* number of bytes */
diff --git a/Modules/_ctypes/libffi/ltmain.sh b/Modules/_ctypes/libffi/ltmain.sh
index a50a21a..0595980 100644
--- a/Modules/_ctypes/libffi/ltmain.sh
+++ b/Modules/_ctypes/libffi/ltmain.sh
@@ -1438,7 +1438,7 @@ func_run_hooks ()
case " $hookable_fns " in
*" $1 "*) ;;
- *) func_fatal_error "'$1' does not support hook funcions.n" ;;
+ *) func_fatal_error "'$1' does not support hook functions." ;;
esac
eval _G_hook_fns=\$$1_hooks; shift