summaryrefslogtreecommitdiff
path: root/src/main-gdb-head.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/main-gdb-head.py')
-rw-r--r--src/main-gdb-head.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main-gdb-head.py b/src/main-gdb-head.py
index 8c6fe08..d8f2001 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().itervalues()}
+initial_globals = {id(v):v for v in globals().values()}
import re
@@ -32,8 +32,8 @@ def get_basic_type(type_):
def finish():
global finish, initial_globals, FastPrinters
- final_globals = {id(v):v for v in globals().itervalues()}
- diff = final_globals.viewkeys() - initial_globals.viewkeys() \
+ final_globals = {id(v):v for v in globals().values()}
+ diff = final_globals.keys() - initial_globals.keys() \
- {'finish', 'initial_globals', 'FastPrinters'}
fp = FastPrinters()
@@ -67,7 +67,7 @@ class FastPrinters(object):
@property
def subprinters(self):
- return self.printers.values()
+ return list(self.printers.values())
def strip_templates(self, name, __pattern=re.compile('<[^<>]*>')):
# TODO what about '<' and '>' as non-type template parameters?