Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/837 #881

Merged
merged 3 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions eventlet/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,8 @@ def send(self, result=None, exc=None):

It is an error to call :meth:`send` multiple times on the same event.

>>> evt.send('whoops')
>>> evt.send('whoops') # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
AssertionError: Trying to re-send() an already-triggered event.

Use :meth:`reset` between :meth:`send` s to reuse an event object.
Expand Down
4 changes: 1 addition & 3 deletions eventlet/green/CGIHTTPServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@

test = None # bind prior to patcher.inject to silence pyflakes warning below
patcher.inject(
'CGIHTTPServer',
'http.server',
globals(),
('BaseHTTPServer', BaseHTTPServer),
('SimpleHTTPServer', SimpleHTTPServer),
('urllib', urllib),
('select', select))

Expand Down
3 changes: 1 addition & 2 deletions eventlet/green/SimpleHTTPServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
from eventlet.green import urllib

patcher.inject(
'SimpleHTTPServer',
'http.server',
globals(),
('BaseHTTPServer', BaseHTTPServer),
('urllib', urllib))

del patcher
Expand Down