Skip to content

Commit

Permalink
Pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
mayfield committed Apr 10, 2017
1 parent 6656699 commit d1eaa31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions shellish/layout/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@ def ns2table(ns):
}
return ns2table


def make_accessors(self, columns):
""" Accessors can be numeric keys for sequence row data, string keys
for mapping row data, or a callable function. For numeric and string
Expand Down Expand Up @@ -753,8 +752,8 @@ def calc_widths_filter(self, next_filter):
if not self.data_window:
start = time.monotonic()
while len(self.data_window) < self.min_render_prefill or \
(len(self.data_window) < self.max_render_prefill and
(time.monotonic() - start) < self.max_render_delay):
(len(self.data_window) < self.max_render_prefill and
(time.monotonic() - start) < self.max_render_delay):
try:
self.data_window.append((yield))
except GeneratorExit as e:
Expand Down
3 changes: 2 additions & 1 deletion test/rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,8 @@ def test_split_notfound(self):
self.assertListEqual(vs.split('bcd'), ref.split('bcd'))

def test_split_multichar(self):
for ref in ('abcGAPABC', 'abcGAP', 'GAPabc', 'abGAPABGAP', 'aGAPbGAPc'):
for ref in ('abcGAPABC', 'abcGAP', 'GAPabc', 'abGAPABGAP',
'aGAPbGAPc'):
vs = R.vtmlrender(ref)
self.assertListEqual(vs.split('GAP'), ref.split('GAP'))

Expand Down

0 comments on commit d1eaa31

Please sign in to comment.