Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
cb1c4c8c
Commit
cb1c4c8c
authored
Dec 13, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issue #17919: select.poll.poll() again works with poll.POLLNVAL on AIX.
parents
2748bc73
3ad2d709
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
Lib/test/test_poll.py
Lib/test/test_poll.py
+0
-4
Misc/NEWS
Misc/NEWS
+2
-0
Modules/selectmodule.c
Modules/selectmodule.c
+2
-3
No files found.
Lib/test/test_poll.py
View file @
cb1c4c8c
...
...
@@ -163,10 +163,6 @@ class PollTests(unittest.TestCase):
pollster
=
select
.
poll
()
# Issue 15989
self
.
assertRaises
(
OverflowError
,
pollster
.
register
,
0
,
_testcapi
.
SHRT_MAX
+
1
)
self
.
assertRaises
(
OverflowError
,
pollster
.
register
,
0
,
_testcapi
.
USHRT_MAX
+
1
)
self
.
assertRaises
(
OverflowError
,
pollster
.
poll
,
_testcapi
.
INT_MAX
+
1
)
self
.
assertRaises
(
OverflowError
,
pollster
.
poll
,
_testcapi
.
UINT_MAX
+
1
)
...
...
Misc/NEWS
View file @
cb1c4c8c
...
...
@@ -37,6 +37,8 @@ Core and Builtins
Library
-------
- Issue #17919: select.poll.poll() again works with poll.POLLNVAL on AIX.
- Issue #19063: if a Charset'
s
body_encoding
was
set
to
None
,
the
email
package
would
generate
a
message
claiming
the
Content
-
Transfer
-
Encoding
was
7
bit
,
and
produce
garbage
output
for
the
content
.
This
now
works
.
...
...
Modules/selectmodule.c
View file @
cb1c4c8c
...
...
@@ -375,11 +375,10 @@ static PyObject *
poll_register
(
pollObject
*
self
,
PyObject
*
args
)
{
PyObject
*
o
,
*
key
,
*
value
;
int
fd
;
short
events
=
POLLIN
|
POLLPRI
|
POLLOUT
;
int
fd
,
events
=
POLLIN
|
POLLPRI
|
POLLOUT
;
int
err
;
if
(
!
PyArg_ParseTuple
(
args
,
"O|
h
:register"
,
&
o
,
&
events
))
{
if
(
!
PyArg_ParseTuple
(
args
,
"O|
i
:register"
,
&
o
,
&
events
))
{
return
NULL
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment