Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08e29a0 commit d4302ccCopy full SHA for d4302cc
packages/python/plotly/plotly/basedatatypes.py
@@ -384,8 +384,8 @@ def _axis_spanning_shapes_docstr(shape_type):
384
385
def _generator(i):
386
""" "cast" an iterator to a generator """
387
- while True:
388
- yield next(i)
+ for x in i:
+ yield x
389
390
391
class BaseFigure(object):
0 commit comments