From c926043ef884ed8a49f120ab638dc96226e7a24f Mon Sep 17 00:00:00 2001 From: Angelos Tzotsos Date: Sun, 29 Sep 2024 21:05:26 +0300 Subject: [PATCH] Fix flake8 issues --- owslib/coverage/wcs110.py | 1 + owslib/coverage/wcs201.py | 2 ++ owslib/opensearch.py | 2 +- owslib/wps.py | 4 ++-- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/owslib/coverage/wcs110.py b/owslib/coverage/wcs110.py index d9e5ffd0..053a2bfe 100644 --- a/owslib/coverage/wcs110.py +++ b/owslib/coverage/wcs110.py @@ -24,6 +24,7 @@ LOGGER = logging.getLogger(__name__) + class Namespaces_1_1_0(): def WCS(self, tag): diff --git a/owslib/coverage/wcs201.py b/owslib/coverage/wcs201.py index d720ec5d..16486185 100644 --- a/owslib/coverage/wcs201.py +++ b/owslib/coverage/wcs201.py @@ -30,6 +30,8 @@ ) from owslib.util import datetime_from_ansi, datetime_from_iso, openURL, param_list_to_url_string, testXMLValue +LOGGER = logging.getLogger(__name__) + # function to save writing out WCS namespace in full each time def ns(tag): diff --git a/owslib/opensearch.py b/owslib/opensearch.py index 14cef67d..616122cd 100644 --- a/owslib/opensearch.py +++ b/owslib/opensearch.py @@ -201,7 +201,7 @@ def __init__(self, md): } options = [o.attrib.get('value') for o in p.findall(nspath_eval('parameters:Option', namespaces))] - if len(options) > 0 : + if len(options) > 0: p_def['options'] = options url_def['parameters'][p_name] = p_def diff --git a/owslib/wps.py b/owslib/wps.py index 6f567d9e..950ebad1 100644 --- a/owslib/wps.py +++ b/owslib/wps.py @@ -802,7 +802,7 @@ def checkStatus(self, url=None, response=None, sleepSecs=60): if url is not None: self.statusLocation = url LOGGER.info('\nChecking execution status... (location=%s)' % - self.statusLocation) + self.statusLocation) try: response = reader.readFromUrl( self.statusLocation, headers=self.headers) @@ -1934,7 +1934,7 @@ def monitorExecution(execution, sleepSecs=3, download=False, filepath=None): else: for ex in execution.errors: LOGGER.error('Error: code=%s, locator=%s, text=%s' % - (ex.code, ex.locator, ex.text)) + (ex.code, ex.locator, ex.text)) def printValue(value):