Skip to content

Commit ddfa99e

Browse files
committed
Fall back to trollius on SyntaxError when importing asyncio
This usually means a python 2 installation is trying to import python 3 asyncio
1 parent e77721b commit ddfa99e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neovim/msgpack_rpc/event_loop/asyncio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
try:
1818
# For python 3.4+, use the standard library module
1919
import asyncio
20-
except ImportError:
20+
except ImportError, SyntaxError:
2121
# Fallback to trollius
2222
import trollius as asyncio
2323

0 commit comments

Comments
 (0)