Skip to content

Commit

Permalink
[eventlet] Enable for Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
meunierd committed Jan 25, 2016
1 parent 947a70a commit fc3be98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions chaussette/backend/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
except ImportError:
pass

try:
from chaussette.backend import _eventlet
_backends['eventlet'] = _eventlet.Server
except ImportError:
pass

PY3 = sys.version_info[0] == 3

Expand All @@ -55,12 +60,6 @@
except ImportError:
pass

try:
from chaussette.backend import _eventlet
_backends['eventlet'] = _eventlet.Server
except ImportError:
pass

try:
from chaussette.backend import _socketio
_backends['socketio'] = _socketio.Server
Expand Down
2 changes: 1 addition & 1 deletion chaussette/tests/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
'socketio', 'tornado', 'waitress',
'wsgiref']
PYPY = ['tornado', 'waitress', 'wsgiref']
PY3 = ['meinheld', 'tornado', 'waitress', 'wsgiref']
PY3 = ['eventlet', 'meinheld', 'tornado', 'waitress', 'wsgiref']


class TestBackend(unittest.TestCase):
Expand Down

0 comments on commit fc3be98

Please sign in to comment.