From 630782d8c6e7bdd9cc1d5b1d0f49836752f9228b Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Mon, 19 May 2014 17:10:56 -0700 Subject: Fuck doko --- src/main-gdb-head.py | 8 ++++---- 1 file 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? -- cgit v1.2.3-70-g09d2