Skip to content

Commit

Permalink
chore: Fix new flake8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Aug 2, 2022
1 parent 5c0ce3e commit d09aedb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions kingfisher_scrapy/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def items_basecoro(target, prefix, map_type=None, skip_key=None):
path, the current event is skipped. Otherwise, the method is identical.
"""
while True:
current, event, value = (yield)
current, event, value = yield
if skip_key and skip_key in current:
continue
if current == prefix:
Expand All @@ -218,7 +218,7 @@ def items_basecoro(target, prefix, map_type=None, skip_key=None):
end_event = event.replace('start', 'end')
while (current, event) != (prefix, end_event):
builder.event(event, value)
current, event, value = (yield)
current, event, value = yield
del builder.containers[:]
target.send(builder.value)
else:
Expand Down
2 changes: 1 addition & 1 deletion tests/extensions/test_kingfisher_process_api2.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, status_code=200, content=None):

@property
def ok(self):
return not(400 <= self.status_code < 600)
return not (400 <= self.status_code < 600)

def json(self):
return self.content
Expand Down

0 comments on commit d09aedb

Please sign in to comment.