diff options
author | Jürg Billeter <j@bitron.ch> | 2018-08-07 16:48:21 +0000 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2018-08-07 16:48:21 +0000 |
commit | fa5a59f0a898fb7d6730775172404be907a788bf (patch) | |
tree | df709b2e074090bf558915176c05fa65d589e13c | |
parent | 2ceb5dec5848354ecec88cdae915a3231387c086 (diff) | |
parent | ea27e389c629330ac58c746d22b1742a8f18e97d (diff) | |
download | buildstream-fa5a59f0a898fb7d6730775172404be907a788bf.tar.gz |
Merge branch 'juerg/python3.7' into 'master'
Python 3.7 support
See merge request BuildStream/buildstream!615
-rw-r--r-- | buildstream/_artifactcache/cascache.py | 7 | ||||
-rwxr-xr-x | setup.py | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/buildstream/_artifactcache/cascache.py b/buildstream/_artifactcache/cascache.py index 1b2dc198f..c4b3688d4 100644 --- a/buildstream/_artifactcache/cascache.py +++ b/buildstream/_artifactcache/cascache.py @@ -846,6 +846,9 @@ class _CASRemote(): def _grouper(iterable, n): - # pylint: disable=stop-iteration-return while True: - yield itertools.chain([next(iterable)], itertools.islice(iterable, n - 1)) + try: + current = next(iterable) + except StopIteration: + return + yield itertools.chain([current], itertools.islice(iterable, n - 1)) @@ -272,6 +272,5 @@ setup(name='BuildStream', 'pytest-cov >= 2.5.0', # Provide option to run tests in parallel, less reliable 'pytest-xdist', - 'pytest >= 3.1.0', - 'pylint >= 1.8 , < 2'], + 'pytest >= 3.1.0'], zip_safe=False) |