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
4539ff5c
Commit
4539ff5c
authored
Feb 11, 2014
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #20505: Remove debug code
parent
f9ebfb67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
Lib/asyncio/base_events.py
Lib/asyncio/base_events.py
+0
-20
No files found.
Lib/asyncio/base_events.py
View file @
4539ff5c
...
...
@@ -646,27 +646,7 @@ class BaseEventLoop(events.AbstractEventLoop):
else
:
logger
.
log
(
level
,
'poll took %.3f seconds'
,
t1
-
t0
)
else
:
t0_monotonic
=
time
.
monotonic
()
t0
=
time
.
perf_counter
()
event_list
=
self
.
_selector
.
select
(
timeout
)
dt
=
time
.
perf_counter
()
-
t0
dt_monotonic
=
time
.
monotonic
()
-
t0_monotonic
if
(
not
event_list
and
timeout
and
(
dt
<
timeout
or
dt_monotonic
<
timeout
)):
selector
=
self
.
_selector
.
__class__
.
__name__
if
(
selector
.
startswith
((
"Poll"
,
"Epoll"
,
"Iocp"
))
or
timeout
>
1e-3
or
dt
>
1e-3
):
unit
,
factor
=
"ms"
,
1e3
else
:
unit
,
factor
=
"us"
,
1e6
print
(
"asyncio: %s.select(%.4f %s) took %.3f %s"
" (monotonic=%.3f %s, clock res=%.3f %s)"
%
(
self
.
_selector
.
__class__
.
__name__
,
timeout
*
factor
,
unit
,
dt
*
factor
,
unit
,
dt_monotonic
*
factor
,
unit
,
self
.
_clock_resolution
*
factor
,
unit
),
file
=
sys
.
__stderr__
,
flush
=
True
)
self
.
_process_events
(
event_list
)
# Handle 'later' callbacks that are ready.
...
...
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