summaryrefslogtreecommitdiff
path: root/doc/data/messages/n/nonlocal-without-binding/bad.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/data/messages/n/nonlocal-without-binding/bad.py')
-rw-r--r--doc/data/messages/n/nonlocal-without-binding/bad.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/data/messages/n/nonlocal-without-binding/bad.py b/doc/data/messages/n/nonlocal-without-binding/bad.py
new file mode 100644
index 000000000..6a166e09f
--- /dev/null
+++ b/doc/data/messages/n/nonlocal-without-binding/bad.py
@@ -0,0 +1,3 @@
+class Fruit:
+ def get_color(self):
+ nonlocal colors # [nonlocal-without-binding]