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
5533a39c
Commit
5533a39c
authored
Dec 17, 2012
by
Andrew Svetlov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #16704: Get rid of select.error in stdlib. Use OSError instead.
parent
f717d072
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
Lib/subprocess.py
Lib/subprocess.py
+2
-2
Lib/telnetlib.py
Lib/telnetlib.py
+2
-2
Lib/test/test_logging.py
Lib/test/test_logging.py
+1
-1
Lib/test/test_select.py
Lib/test/test_select.py
+1
-1
Lib/test/test_signal.py
Lib/test/test_signal.py
+2
-2
No files found.
Lib/subprocess.py
View file @
5533a39c
...
...
@@ -1614,7 +1614,7 @@ class Popen(object):
raise
TimeoutExpired
(
self
.
args
,
orig_timeout
)
try
:
ready
=
poller
.
poll
(
timeout
)
except
select
.
e
rror
as
e
:
except
OSE
rror
as
e
:
if
e
.
args
[
0
]
==
errno
.
EINTR
:
continue
raise
...
...
@@ -1682,7 +1682,7 @@ class Popen(object):
(
rlist
,
wlist
,
xlist
)
=
\
select
.
select
(
self
.
_read_set
,
self
.
_write_set
,
[],
timeout
)
except
select
.
e
rror
as
e
:
except
OSE
rror
as
e
:
if
e
.
args
[
0
]
==
errno
.
EINTR
:
continue
raise
...
...
Lib/telnetlib.py
View file @
5533a39c
...
...
@@ -313,7 +313,7 @@ class Telnet:
while
i
<
0
and
not
self
.
eof
:
try
:
ready
=
poller
.
poll
(
call_timeout
)
except
select
.
e
rror
as
e
:
except
OSE
rror
as
e
:
if
e
.
errno
==
errno
.
EINTR
:
if
timeout
is
not
None
:
elapsed
=
time
()
-
time_start
...
...
@@ -683,7 +683,7 @@ class Telnet:
while
not
m
and
not
self
.
eof
:
try
:
ready
=
poller
.
poll
(
call_timeout
)
except
select
.
e
rror
as
e
:
except
OSE
rror
as
e
:
if
e
.
errno
==
errno
.
EINTR
:
if
timeout
is
not
None
:
elapsed
=
time
()
-
time_start
...
...
Lib/test/test_logging.py
View file @
5533a39c
...
...
@@ -773,7 +773,7 @@ if threading:
"""
try:
asyncore.loop(poll_interval, map=self.sockmap)
except
select.e
rror:
except
OSE
rror:
# On FreeBSD 8, closing the server repeatably
# raises this error. We swallow it if the
# server has been closed.
...
...
Lib/test/test_select.py
View file @
5533a39c
...
...
@@ -32,7 +32,7 @@ class SelectTestCase(unittest.TestCase):
fp
.
close
()
try
:
select
.
select
([
fd
],
[],
[],
0
)
except
select
.
e
rror
as
err
:
except
OSE
rror
as
err
:
self
.
assertEqual
(
err
.
errno
,
errno
.
EBADF
)
else
:
self
.
fail
(
"exception not raised"
)
...
...
Lib/test/test_signal.py
View file @
5533a39c
...
...
@@ -299,10 +299,10 @@ class WakeupSignalTests(unittest.TestCase):
# We attempt to get a signal during the select call
try:
select.select([read], [], [], TIMEOUT_FULL)
except
select.e
rror:
except
OSE
rror:
pass
else:
raise Exception("
select.e
rror not raised")
raise Exception("
OSE
rror not raised")
after_time = time.time()
dt = after_time - before_time
if dt >= TIMEOUT_HALF:
...
...
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