[Python-checkins] cpython (3.3): Issue #11973: Fix a problem in kevent. The flags and fflags fields are now

christian.heimes python-checkins at python.org
Sun Aug 25 14:58:46 CEST 2013


http://hg.python.org/cpython/rev/d5334d8907dc
changeset:   85382:d5334d8907dc
branch:      3.3
parent:      85378:8b962e831ff0
user:        Christian Heimes <christian at cheimes.de>
date:        Sun Aug 25 14:57:00 2013 +0200
summary:
  Issue #11973: Fix a problem in kevent. The flags and fflags fields are now
properly handled as unsigned.

files:
  Misc/NEWS              |  3 +++
  Modules/selectmodule.c |  2 +-
  2 files changed, 4 insertions(+), 1 deletions(-)


diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -66,6 +66,9 @@
 Library
 -------
 
+- Issue #11973: Fix a problem in kevent. The flags and fflags fields are now
+  properly handled as unsigned.
+
 - Issue #17702: On error, os.environb now removes suppress the except context
   when raising a new KeyError with the original key.
 
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -1638,7 +1638,7 @@
     PyObject *pfd;
     static char *kwlist[] = {"ident", "filter", "flags", "fflags",
                              "data", "udata", NULL};
-    static char *fmt = "O|hhi" DATA_FMT_UNIT UINTPTRT_FMT_UNIT ":kevent";
+    static char *fmt = "O|hHI" DATA_FMT_UNIT UINTPTRT_FMT_UNIT ":kevent";
 
     EV_SET(&(self->e), 0, EVFILT_READ, EV_ADD, 0, 0, 0); /* defaults */
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list