Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
ZODB
Commits
4a981c73
Commit
4a981c73
authored
Sep 27, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whitespace normalization.
parent
7597373d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/ThreadedAsync/LoopCallback.py
src/ThreadedAsync/LoopCallback.py
+3
-4
No files found.
src/ThreadedAsync/LoopCallback.py
View file @
4a981c73
...
@@ -29,7 +29,7 @@ This module rebinds loop() in the asyncore module; i.e. once this
...
@@ -29,7 +29,7 @@ This module rebinds loop() in the asyncore module; i.e. once this
module is imported, any client of the asyncore module will get
module is imported, any client of the asyncore module will get
ThreadedAsync.loop() when it calls asyncore.loop().
ThreadedAsync.loop() when it calls asyncore.loop().
"""
"""
__version__
=
'$Revision: 1.4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.5
$'
[
11
:
-
2
]
import
asyncore
import
asyncore
import
select
import
select
...
@@ -79,7 +79,7 @@ def _stop_loop():
...
@@ -79,7 +79,7 @@ def _stop_loop():
finally
:
finally
:
_loop_lock
.
release
()
_loop_lock
.
release
()
def
loop
(
timeout
=
30.0
,
use_poll
=
0
,
map
=
None
):
def
loop
(
timeout
=
30.0
,
use_poll
=
0
,
map
=
None
):
"""Invoke asyncore mainloop
"""Invoke asyncore mainloop
This function functions like the regular asyncore.loop() function
This function functions like the regular asyncore.loop() function
...
@@ -103,11 +103,10 @@ def loop (timeout=30.0, use_poll=0, map=None):
...
@@ -103,11 +103,10 @@ def loop (timeout=30.0, use_poll=0, map=None):
_stop_loop
()
_stop_loop
()
# Woo hoo!
# Woo hoo!
asyncore
.
loop
=
loop
asyncore
.
loop
=
loop
# What the heck did we just do?
# What the heck did we just do?
#
#
# Well, the thing is, we want to work with other asyncore aware
# Well, the thing is, we want to work with other asyncore aware
# code. In particular, we don't necessarily want to make someone
# code. In particular, we don't necessarily want to make someone
# import this module just to start or loop.
# import this module just to start or loop.
#
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