Skip to content

Commit

Permalink
parse: return instead of raising StopIteration.
Browse files Browse the repository at this point in the history
In Python 3.7 StopIteration is transformed to a RuntimeError.
See PEP 479.

This change is backwards compatible, the exception was
unnecessary in the first place.

closes: Dav1dde#172
  • Loading branch information
Dav1dde committed Sep 11, 2018
1 parent 256a236 commit ddf83fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glad/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def find(self, require, api, profile, recursive=False):
"""
if not ((require.profile is None or require.profile == profile) and
(require.api is None or require.api == api)):
raise StopIteration
return

if self._combined is None:
self._combined = dict()
Expand Down

0 comments on commit ddf83fb

Please sign in to comment.