Bugfix for shell completion of attributes in Python 3.13. eric7

Sun, 27 Apr 2025 20:38:55 +0200

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Sun, 27 Apr 2025 20:38:55 +0200
branch
eric7
changeset 11244
d0060bbd5da8
parent 11240
c48c615c04a3
child 11245
97eff351b12b

Bugfix for shell completion of attributes in Python 3.13.

src/eric7/DebugClients/Python/FlexCompleter.py file | annotate | diff | comparison | revisions
--- a/src/eric7/DebugClients/Python/FlexCompleter.py	Sat Apr 26 12:34:32 2025 +0200
+++ b/src/eric7/DebugClients/Python/FlexCompleter.py	Sun Apr 27 20:38:55 2025 +0200
@@ -199,7 +199,7 @@
             return []
         expr, attr = m.group(1, 3)
         try:
-            thisobject = eval(expr, self.namespace)  # secok
+            thisobject = eval(expr, {}, self.namespace)  # secok
         except Exception:
             return []
 

eric ide

mercurial