Skip to content

Commit

Permalink
Merge pull request #73 from meunierd/eventlet_py3
Browse files Browse the repository at this point in the history
[eventlet] Enable for Python 3
  • Loading branch information
k4nar committed Jan 25, 2016
2 parents 42aab65 + fc3be98 commit e5debcc
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
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
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 e5debcc

Please sign in to comment.