fix get_running_loop on python 3.6
This commit is contained in:
parent
5d129fdf98
commit
a1ea5f2af6
1 changed files with 6 additions and 0 deletions
|
@ -4,3 +4,9 @@ __author__ = "Jack Robison"
|
|||
__maintainer__ = "Jack Robison"
|
||||
__license__ = "MIT"
|
||||
__email__ = "jackrobison@lbry.io"
|
||||
|
||||
import sys
|
||||
import asyncio
|
||||
|
||||
if not hasattr(asyncio, "get_running_loop") and hasattr(asyncio, "_get_running_loop"): # python 3.6
|
||||
setattr(sys.modules['asyncio'], "get_running_loop", asyncio._get_running_loop)
|
||||
|
|
Loading…
Reference in a new issue