def get_absolute_url(self, url):

        if not self.base_url:
            return url

        if url.startswith('//'):
            if self.base_url in 'https://':
                url = 'https:' + url
            else:
                url = 'http:' + url
            return url

        if not (url.startswith('http://') or url.startswith('https://')):
            url = urlparse.urljoin(self.base_url, posixpath.normpath(url))

        return url
dataset/ETHPy150Open lavr/python-emails/emails/transformer.py/BaseTransformer.get_absolute_url/swapped operands of `in`