diff options
author | Zachary Buhman <zack@buhman.org> | 2018-07-24 16:22:51 -0700 |
---|---|---|
committer | Zachary Buhman <zack@buhman.org> | 2018-07-24 16:22:51 -0700 |
commit | 894a94e5d2eaf32e02f0ad982062bcd876b572c9 (patch) | |
tree | 8947fd6646a2243967f622d0b6ac5b80387a2b85 /main.py | |
parent | 826e9b6140febc9444cfed18862bac5310b982b6 (diff) | |
download | ruamel.yaml-894a94e5d2eaf32e02f0ad982062bcd876b572c9.tar.gz |
load_all: remove StopIteration
StopIteration in a generator is not allowed in pep479/python3.7+; return
provides equivalent behavior.
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -285,7 +285,7 @@ class YAML(object): with stream.open('r') as fp: # type: ignore for d in self.load_all(fp, _kw=enforce): yield d - raise StopIteration() + return # if skip is None: # skip = [] # elif isinstance(skip, int): |