# Path: grazyna/irc/models.py
# class WhoisFuture(asyncio.Future):
#     data = None
# 
#     def __init__(self, *args, **kwargs):
#         super().__init__(*args, **kwargs)
#         self.data = WhoisData()


from grazyna.irc.models import WhoisFuture
import asyncio


class IrcSender(object):
    transport = None
    whois_heap = None

    def __init__(self):
        self.whois_heap = {}

    def send(self, *args):
        string = ' '.join(
            str(arg).replace('\r', '').replace('\n', '')
            for arg in args
        )[:510] + '\r\n'

# Path: grazyna/irc/models.py
# class WhoisFuture(asyncio.Future):
#     data = None
# 
#     def __init__(self, *args, **kwargs):
#         super().__init__(*args, **kwargs)
#         self.data = WhoisData()


# Path: grazyna/irc/sender.py
from grazyna.irc.models import WhoisFuture
import asyncio



class IrcSender(object):
    transport = None
    whois_heap = None

    def __init__(self):
        self.whois_heap = {}

    def send(self, *args):
        string = ' '.join(
            str(arg).replace('\r', '').replace('\n', '')
            for arg in args
        )[:510] + '\r\n'

        self.transport.write(string.encode())