From: Markus Demleitner <gavo@ari.uni-heidelberg.de>
Date: Thu, 24 Apr 2025 16:01:10 +0200
Subject: Making DaCHS not fail with PEP 667

This fixes bug #1104031
---
 gavo/stc/stcsast.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gavo/stc/stcsast.py b/gavo/stc/stcsast.py
index 2d04e6f..775b421 100644
--- a/gavo/stc/stcsast.py
+++ b/gavo/stc/stcsast.py
@@ -435,8 +435,9 @@ def _makeGeometryKeyIterator(argDesc, clsName):
 		'  if coos: raise common.STCSParseError("Too many coordinates'
 		' while building %s, remaining: %%s"%%coos)'%clsName)
 
-	exec("\n".join(parseLines))
-	return locals()["iterKeys"]
+	vars = locals()
+	exec("\n".join(parseLines), globals(), vars)
+	return vars["iterKeys"]
 
 
 def _makeGeometryKeyIterators():
