def __init__(self, url, username=None, password=None):
        if username or password:
            protocol, rest = url.split('://', 1)
            self.url = '%s://%s:%s@%s' % (protocol, username, password, rest)
            self.masked_url = '%s://%s:%s@%s' % (protocol, username, '*' * 8,
                                                 rest)
        else:
            self.url = self.masked_url = url

        self.proxy = None
dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/_release.py/_ZopeProxy.__init__/operator `and` -> `or`