Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
Kirill Smelkov
gevent
Commits
e5ee390f
Commit
e5ee390f
authored
Aug 15, 2009
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Event: fix NameError in get() and wait()
parent
c76a69ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gevent/event.py
gevent/event.py
+2
-2
No files found.
gevent/event.py
View file @
e5ee390f
...
...
@@ -76,12 +76,12 @@ class Event(object):
t
=
Timeout
(
timeout
)
try
:
result
=
get_hub
().
switch
()
assert
result
is
self
,
'Invalid switch into Event.get(): %r'
%
(
result
,
)
finally
:
t
.
cancel
()
except
:
self
.
unlink
(
switch
)
raise
assert
result
is
self
,
'Invalid switch into Event.get(): %r'
%
(
result
,
)
return
self
.
_value
else
:
raise
Timeout
...
...
@@ -99,13 +99,13 @@ class Event(object):
t
=
Timeout
(
timeout
)
try
:
result
=
get_hub
().
switch
()
assert
result
is
self
,
'Invalid switch into Event.wait(): %r'
%
(
result
,
)
finally
:
t
.
cancel
()
except
Timeout
,
exc
:
if
exc
is
not
t
:
raise
self
.
unlink
(
switch
)
assert
result
is
self
,
'Invalid switch into Event.wait(): %r'
%
(
result
,
)
# compatibility to threading.Event:
is_set
=
isSet
=
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