summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/gcmodule.c4
-rw-r--r--Modules/posixmodule.c9
-rw-r--r--Modules/selectmodule.c2
3 files changed, 8 insertions, 7 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c
index d4a0900..1b5cf89 100644
--- a/Modules/gcmodule.c
+++ b/Modules/gcmodule.c
@@ -927,7 +927,7 @@ collect(int generation)
*/
(void)handle_finalizers(&finalizers, old);
- /* Clear free list only during the collection of the higest
+ /* Clear free list only during the collection of the highest
* generation */
if (generation == NUM_GENERATIONS-1) {
clear_freelists();
@@ -948,7 +948,7 @@ collect_generations(void)
int i;
Py_ssize_t n = 0;
- /* Find the oldest generation (higest numbered) where the count
+ /* Find the oldest generation (highest numbered) where the count
* exceeds the threshold. Objects in the that generation and
* generations younger than it will be collected. */
for (i = NUM_GENERATIONS-1; i >= 0; i--) {
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 3ed8d5f..4a63f3d 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -1988,9 +1988,10 @@ fd to the numeric uid and gid.");
static PyObject *
posix_fchown(PyObject *self, PyObject *args)
{
- int fd, uid, gid;
+ int fd;
+ long uid, gid;
int res;
- if (!PyArg_ParseTuple(args, "iii:chown", &fd, &uid, &gid))
+ if (!PyArg_ParseTuple(args, "ill:chown", &fd, &uid, &gid))
return NULL;
Py_BEGIN_ALLOW_THREADS
res = fchown(fd, (uid_t) uid, (gid_t) gid);
@@ -2012,9 +2013,9 @@ posix_lchown(PyObject *self, PyObject *args)
{
PyObject *opath;
char *path;
- int uid, gid;
+ long uid, gid;
int res;
- if (!PyArg_ParseTuple(args, "O&ii:lchown",
+ if (!PyArg_ParseTuple(args, "O&ll:lchown",
PyUnicode_FSConverter, &opath,
&uid, &gid))
return NULL;
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index 3820bbb..9f1b968 100644
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -1166,7 +1166,7 @@ static PyTypeObject pyEpoll_Type = {
#endif
PyDoc_STRVAR(kqueue_event_doc,
-"kevent(ident, filter=KQ_FILTER_READ, flags=KQ_ADD, fflags=0, data=0, udata=0)\n\
+"kevent(ident, filter=KQ_FILTER_READ, flags=KQ_EV_ADD, fflags=0, data=0, udata=0)\n\
\n\
This object is the equivalent of the struct kevent for the C API.\n\
\n\