

def __init__(self, url, version='1.0.0', xml=None, username=None, password=None, parse_remote_metadata=False, timeout=30):
    'Initialize.'
    self.url = url
    self.username = username
    self.password = password
    self.version = version
    self.timeout = timeout
    self.services = None
    self._capabilities = None
    self.contents = {
        
    }
    reader = TMSCapabilitiesReader(self.version, url=self.url, un=self.username, pw=self.password)
    if xml:
        self._capabilities = xml.readString(xml)
    else:
        self._capabilities = reader.read(self.url, timeout=self.timeout)
    self._buildMetadata(parse_remote_metadata)

dataset/ETHPy150Open geopython/OWSLib/owslib/tms.py TileMapService.__init__/VarMisuse@125/145 `reader`->`xml`