Skip to content

Commit d932a6b

Browse files
authored
Fix flake8 issues (#943)
1 parent 4379f87 commit d932a6b

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

owslib/coverage/wcs110.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
LOGGER = logging.getLogger(__name__)
2626

27+
2728
class Namespaces_1_1_0():
2829

2930
def WCS(self, tag):

owslib/coverage/wcs201.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
)
3131
from owslib.util import datetime_from_ansi, datetime_from_iso, openURL, param_list_to_url_string, testXMLValue
3232

33+
LOGGER = logging.getLogger(__name__)
34+
3335

3436
# function to save writing out WCS namespace in full each time
3537
def ns(tag):

owslib/opensearch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def __init__(self, md):
201201
}
202202

203203
options = [o.attrib.get('value') for o in p.findall(nspath_eval('parameters:Option', namespaces))]
204-
if len(options) > 0 :
204+
if len(options) > 0:
205205
p_def['options'] = options
206206

207207
url_def['parameters'][p_name] = p_def

owslib/wps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ def checkStatus(self, url=None, response=None, sleepSecs=60):
802802
if url is not None:
803803
self.statusLocation = url
804804
LOGGER.info('\nChecking execution status... (location=%s)' %
805-
self.statusLocation)
805+
self.statusLocation)
806806
try:
807807
response = reader.readFromUrl(
808808
self.statusLocation, headers=self.headers)
@@ -1934,7 +1934,7 @@ def monitorExecution(execution, sleepSecs=3, download=False, filepath=None):
19341934
else:
19351935
for ex in execution.errors:
19361936
LOGGER.error('Error: code=%s, locator=%s, text=%s' %
1937-
(ex.code, ex.locator, ex.text))
1937+
(ex.code, ex.locator, ex.text))
19381938

19391939

19401940
def printValue(value):

0 commit comments

Comments
 (0)