Skip to content

Commit e0ea86a

Browse files
authored
Merge pull request #218 from bmcculley/win-3.8-fix
Windows 3.8 asyncio fix
2 parents b39d62b + 800810d commit e0ea86a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

livereload/server.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,16 @@
3030
from six import string_types, PY3
3131

3232
import sys
33+
import asyncio
34+
3335
if sys.version_info >= (3, 7) or sys.version_info.major == 2:
3436
import errno
3537
else:
3638
from os import errno
3739

40+
if sys.version_info >= (3, 8) and sys.platform == 'win32':
41+
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
42+
3843
logger = logging.getLogger('livereload')
3944

4045
HEAD_END = b'</head>'

0 commit comments

Comments
 (0)