@staticmethod
    def from_url(url, **kwargs):
        u = urlopen(url)
        if u.headers.has_key("content-type") and u.headers["content-type"].lower() == "application/x-gzip":
            u = GzipFile(fileobj=StringIO(u.read()))
        return SitemapIndex(u, url, **kwargs)
Change existing comment on a schema
dataset/ETHPy150Open andreisavu/python-sitemap/sitemap/sitemapindex.py/SitemapIndex.from_url--crossover with--dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_schema.py/SchemaToSqlTestCase.test_change_schema_comment