summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorZachary Buhman <zack@buhman.org>2018-07-24 16:22:51 -0700
committerZachary Buhman <zack@buhman.org>2018-07-24 16:22:51 -0700
commit894a94e5d2eaf32e02f0ad982062bcd876b572c9 (patch)
tree8947fd6646a2243967f622d0b6ac5b80387a2b85 /main.py
parent826e9b6140febc9444cfed18862bac5310b982b6 (diff)
downloadruamel.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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index 46ffc14..b2bd808 100644
--- a/main.py
+++ b/main.py
@@ -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):