diff --git a/aioupnp/__init__.py b/aioupnp/__init__.py index 74e7514..735974e 100644 --- a/aioupnp/__init__.py +++ b/aioupnp/__init__.py @@ -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)