def get_stream(self, uri):
        # urljoin takes care of figuring out if it's relative or absolute.
        uri = urlparse.urljoin(self.base, uri)
        try:
            return urllib2.urlopen(uri)
        except IOError:
            warnings.warn('Could not open "%s"' % uri)
            return None
dataset/ETHPy150Open ardekantur/pyglet/contrib/layout/layout/locator.py/URLLocator.get_stream/original