From c5da3b84f262ff29594c4596a071d07579727e39 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 6 Sep 2022 11:46:55 +0200 Subject: [PATCH] Syntax Error: exec() is a function in Python 3 https://docs.python.org/2/reference/simple_stmts.html#exec https://docs.python.org/3/library/functions.html#exec --- docs/plots/buildplots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/plots/buildplots.py b/docs/plots/buildplots.py index 90cc29079..1777e440d 100644 --- a/docs/plots/buildplots.py +++ b/docs/plots/buildplots.py @@ -20,4 +20,4 @@ l = l[:-1] + (", dpi=45, file='%s.png')" % f[:-3]) code[i] = l code = "\n".join(code) - exec code + exec(code)