summaryrefslogtreecommitdiff
path: root/src/main-gdb-head.py
diff options
context:
space:
mode:
authorFreeyorp <TheFreeYorp+git@gmail.com>2024-06-05 20:09:57 +0000
committerFreeyorp <TheFreeYorp+git@gmail.com>2024-06-05 23:57:13 +0000
commit9903d45c343fe51309075674c96b4411b6e1a002 (patch)
treedd5a2d445a1b4598f26803aeed73a36c016a4869 /src/main-gdb-head.py
parentf5500cd949e6db20813c3bbec9cef66284866209 (diff)
downloadtmwa-9903d45c343fe51309075674c96b4411b6e1a002.tar.gz
tmwa-9903d45c343fe51309075674c96b4411b6e1a002.tar.bz2
tmwa-9903d45c343fe51309075674c96b4411b6e1a002.tar.xz
tmwa-9903d45c343fe51309075674c96b4411b6e1a002.zip
python3: Add explicit list()s for python3.6
This should be reverted once we drop support for Ubuntu 18.04, and therefore python3.6, as it does clutter up the code a bit. Sourced from specing's work on the porting process. See https://git.themanaworld.org/legacy/tmwa/-/merge_requests/256
Diffstat (limited to 'src/main-gdb-head.py')
-rw-r--r--src/main-gdb-head.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main-gdb-head.py b/src/main-gdb-head.py
index a465c97..09e22fe 100644
--- a/src/main-gdb-head.py
+++ b/src/main-gdb-head.py
@@ -5,7 +5,7 @@
# gdb sticks everything in one scope.
# This lets us enumerate what *we* added.
-initial_globals = {id(v):v for v in globals().values()}
+initial_globals = {id(v):v for v in list(globals().values())}
import re