def get_version(text):
    if text:
        if isinstance(text, bytes):
            text = text.decode('utf-8')
        elif isinstance(text, tuple):
            text = '.'.join((str(x) for x in text))
        else:
            text = str(text)
        if (text and RX_VERSION.search(text)):
            return text.splitlines()[0]
def get_version(text):
    if text:
        if isinstance(text, bytes):
            text = text.decode('utf-8')
        elif isinstance(text, tuple):
            text = '.'.join((str(x) for x in text))
        else:
            text = str(text)
        if (text and RX_VERSION.search(text)):
            return text.splitlines()[0]