summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-05-19 17:10:56 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-05-19 17:10:56 -0700
commit630782d8c6e7bdd9cc1d5b1d0f49836752f9228b (patch)
treee20af32a6874ac339a2a0520f9763495d53e66f4
parent2410aeb608329ed57a31315effdfd5a751788616 (diff)
downloadtmwa-630782d8c6e7bdd9cc1d5b1d0f49836752f9228b.tar.gz
tmwa-630782d8c6e7bdd9cc1d5b1d0f49836752f9228b.tar.bz2
tmwa-630782d8c6e7bdd9cc1d5b1d0f49836752f9228b.tar.xz
tmwa-630782d8c6e7bdd9cc1d5b1d0f49836752f9228b.zip
Fuck doko
-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?