File: 0002-Making-DaCHS-not-fail-with-PEP-667.patch

package info (click to toggle)
gavodachs 2.11%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,972 kB
  • sloc: python: 100,078; xml: 3,014; javascript: 2,360; ansic: 918; sh: 216; makefile: 31
file content (25 lines) | stat: -rw-r--r-- 764 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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():