Skip to content

Commit

Permalink
STY: flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ-Wright committed Aug 7, 2017
1 parent 0104d2d commit 0e31133
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions shed/event_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,9 +850,8 @@ def update(self, x, who=None):
if local_missing and who in local_missing:
local_missing.remove(who)

if (not local_missing # we have a document from every one
and who in self.emit_on # we are on the emitting stream
):
# we have a document from every one or we are on the emitting stream
if not local_missing and who in self.emit_on:
tup = tuple(local_last)
return self.emit(tup)

Expand Down Expand Up @@ -910,8 +909,8 @@ def update(self, x, who=None):
if local_type == 'special':
return self.emit(tuple(local_last))
# check start and descriptors emitted if not buffer
if not all([self.special_missing[k] for
k in ['start', 'descriptor']]):
if not all([self.special_missing[k] for k in ['start',
'descriptor']]):
L = []
while self.lossless_buffer:
local_last[0] = self.lossless_buffer.popleft()
Expand Down

0 comments on commit 0e31133

Please sign in to comment.