summaryrefslogtreecommitdiff
path: root/tests/basics/generator_throw.py
diff options
context:
space:
mode:
authorPhil Howard <phil@gadgetoid.com>2024-02-29 00:27:06 +0000
committerDamien George <damien@micropython.org>2024-03-07 16:25:17 +1100
commitdda9b9c6da5d3c31fa8769e581a753e95a270803 (patch)
tree853e4db667b319a315719a2ab52d9dfb747abdc0 /tests/basics/generator_throw.py
parentdecf8e6a8bb940d5829ca3296790631fcece7b21 (diff)
all: Prune trailing whitespace.
Prune trailing whitespace across the whole project (almost), done automatically with: grep -IUrl --color "[[:blank:]]$" --exclude-dir=.git --exclude=*.exp |\ xargs sed -i 's/[[:space:]]*$//' Exceptions: - Skip third-party code in lib/ and drivers/cc3100/ - Skip generated code in bluetooth_init_cc2564C_1.5.c - Preserve command output whitespace in docs, eg: docs/esp8266/tutorial/repl.rst Signed-off-by: Phil Howard <phil@gadgetoid.com>
Diffstat (limited to 'tests/basics/generator_throw.py')
-rw-r--r--tests/basics/generator_throw.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/basics/generator_throw.py b/tests/basics/generator_throw.py
index 1b43c125e..067ab2b8e 100644
--- a/tests/basics/generator_throw.py
+++ b/tests/basics/generator_throw.py
@@ -2,7 +2,7 @@
def gen():
yield 123
yield 456
-
+
g = gen()
print(next(g))
try:
@@ -31,7 +31,7 @@ def gen():
except GeneratorExit as e:
print('GeneratorExit', repr(e.args))
yield 456
-
+
# thrown a class
g = gen()
print(next(g))