summaryrefslogtreecommitdiff
path: root/tests/stress/recursive_gen.py
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2023-02-02 11:51:48 +1100
committerJim Mussared <jim.mussared@gmail.com>2023-02-02 12:51:03 +1100
commit8b2748269244304854b3462cb8902952b4dcb892 (patch)
tree05c315fc329eb32bb55c71303eef2183bf818e35 /tests/stress/recursive_gen.py
parentfe2a8332ff9c7cc7b66ed6da04f5a4a825309818 (diff)
top: Update Python formatting to black "2023 stable style".
See https://black.readthedocs.io/en/stable/the_black_code_style/index.html Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'tests/stress/recursive_gen.py')
-rw-r--r--tests/stress/recursive_gen.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/stress/recursive_gen.py b/tests/stress/recursive_gen.py
index 8c2139765..e051abb84 100644
--- a/tests/stress/recursive_gen.py
+++ b/tests/stress/recursive_gen.py
@@ -1,5 +1,6 @@
# test deeply recursive generators
+
# simple "yield from" recursion
def gen():
yield from gen()
@@ -10,6 +11,7 @@ try:
except RuntimeError:
print("RuntimeError")
+
# recursion via an iterator over a generator
def gen2():
for x in gen2():