Skip to content

Commit

Permalink
Add missing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
bbayles committed Nov 30, 2017
1 parent cffdf35 commit b0286ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions more_itertools/more.py
Expand Up @@ -1628,6 +1628,8 @@ def difference(iterable, func=sub):
except StopIteration:
return iter([])
return chain([item], map(lambda x: func(x[1], x[0]), zip(a, b)))


class seekable(object):
"""Wrap an iterator to allow for seeking backward and forward. This
progressively caches the items in the source iterable so they can be
Expand Down
2 changes: 2 additions & 0 deletions more_itertools/tests/test_more.py
Expand Up @@ -1498,6 +1498,8 @@ def test_one(self):

def test_empty(self):
self.assertEqual(list(mi.difference([])), [])


class SeekableTest(TestCase):
def test_exhaustion_reset(self):
iterable = [str(n) for n in range(10)]
Expand Down

0 comments on commit b0286ed

Please sign in to comment.