diff --git a/owslib/wmts.py b/owslib/wmts.py index 4a590f31..494bbdf0 100644 --- a/owslib/wmts.py +++ b/owslib/wmts.py @@ -241,8 +241,8 @@ def gather_layers(parent_elem, parent_metadata): parse_remote_metadata=parse_remote_metadata) if cm.id: if cm.id in self.contents: - msg=('Content metadata for layer "%s" ' - 'already exists' % cm.id) + msg = ('Content metadata for layer "%s" ' + 'already exists' % cm.id) warnings.warn(msg, RuntimeWarning) self.contents[cm.id] = cm gather_layers(elem, cm) @@ -254,7 +254,7 @@ def gather_layers(parent_elem, parent_metadata): if tms.identifier: if tms.identifier in self.tilematrixsets: msg = ('TileMatrixSet with identifier "%s" ' - 'already exists' % tms.identifier) + 'already exists' % tms.identifier) warnings.warn(msg, RuntimeWarning) self.tilematrixsets[tms.identifier] = tms @@ -263,8 +263,8 @@ def gather_layers(parent_elem, parent_metadata): theme = Theme(elem) if theme.identifier: if theme.identifier in self.themes: - msg=('Theme with identifier "%s" already exists' - % theme.identifier) + msg = ('Theme with identifier "%s" already exists' + % theme.identifier) warnings.warn(msg, RuntimeWarning) self.themes[theme.identifier] = theme @@ -523,7 +523,7 @@ def __init__(self, elem): if tm.identifier: if tm.identifier in self.tilematrix: msg = ('TileMatrix with identifier "%s" ' - 'already exists' % tm.identifier) + 'already exists' % tm.identifier) warnings.warn(msg, RuntimeWarning) self.tilematrix[tm.identifier] = tm @@ -753,8 +753,7 @@ def __init__(self, elem, parent=None, index=0, parse_remote_metadata=False): if tmsl.tilematrixset: if tmsl.tilematrixset in self.tilematrixsetlinks: msg = ('TileMatrixSetLink with tilematrixset "%s"' - ' already exists' % - tmsl.tilematrixset) + ' already exists' % tmsl.tilematrixset) warnings.warn(msg, RuntimeWarning) self.tilematrixsetlinks[tmsl.tilematrixset] = tmsl