Skip to content

Lint fixes #948

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions owslib/wmts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

Expand All @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down