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 logging
import socket import socket
from struct import unpack from struct import unpack
import sys import sys
from .compat import asyncio
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
INET_FAMILIES = socket.AF_INET, socket.AF_INET6 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: try:
ConnectionRefusedError ConnectionRefusedError
......
from .._compat import PY3 from .._compat import PY3
if PY3: if PY3:
import asyncio
def to_byte(i): def to_byte(i):
return bytes([i]) return bytes([i])
else: else:
import trollius as asyncio # NOQA: F401 unused import
def to_byte(b): def to_byte(b):
return 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