Commit dd8cb37d authored by Jens Vagelpohl's avatar Jens Vagelpohl

- sanitize async library import location

parent 5ffb1e89
from .._compat import PY3
if PY3:
import asyncio
else:
import trollius as asyncio
import logging
import socket
from struct import unpack
import sys
from .compat import asyncio
logger = logging.getLogger(__name__)
INET_FAMILIES = socket.AF_INET, socket.AF_INET6
......
from .._compat import PY3
from .compat import asyncio
if PY3:
import asyncio
else:
import trollius as asyncio
try:
ConnectionRefusedError
......
from .._compat import PY3
if PY3:
import asyncio
def to_byte(i):
return bytes([i])
else:
import trollius as asyncio # NOQA: F401 unused import
def to_byte(b):
return b
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment