summaryrefslogtreecommitdiff
path: root/lab/genpy.py
diff options
context:
space:
mode:
Diffstat (limited to 'lab/genpy.py')
-rw-r--r--lab/genpy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lab/genpy.py b/lab/genpy.py
index f968c916..f88e70ca 100644
--- a/lab/genpy.py
+++ b/lab/genpy.py
@@ -231,7 +231,7 @@ def show_a_bunch():
source = PythonSpinner.generate_python(maker.make_body("def"))
try:
print("-"*80, "\n", source, sep="")
- compile(source, "<string>", "exec")
+ compile(source, "<string>", "exec", dont_inherit=True)
except Exception as ex:
print(f"Oops: {ex}\n{source}")
if len(source) > len(longest):