summaryrefslogtreecommitdiff
path: root/pysnmp/carrier/asyncio/dgram/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysnmp/carrier/asyncio/dgram/base.py')
-rw-r--r--pysnmp/carrier/asyncio/dgram/base.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/pysnmp/carrier/asyncio/dgram/base.py b/pysnmp/carrier/asyncio/dgram/base.py
index 7cc0b589..ae5ab3a7 100644
--- a/pysnmp/carrier/asyncio/dgram/base.py
+++ b/pysnmp/carrier/asyncio/dgram/base.py
@@ -30,18 +30,20 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
# THE POSSIBILITY OF SUCH DAMAGE.
#
-import sys
import platform
+import sys
import traceback
-from pysnmp.carrier.asyncio.base import AbstractAsyncioTransport
-from pysnmp.carrier import error
-from pysnmp import debug
try:
import asyncio
+
except ImportError:
import trollius as asyncio
+from pysnmp import debug
+from pysnmp.carrier import error
+from pysnmp.carrier.asyncio.base import AbstractAsyncioTransport
+
IS_PYTHON_344_PLUS = platform.python_version_tuple() >= ('3', '4', '4')