Commit 7d414e58 authored by Kevin Funk's avatar Kevin Funk

Make qt4.py compatible with Python 3.x

Note that GDB on Ubuntu 13.10 is linked to Python 3.x. The previous code will
result in an syntax error and render the pretty printer non-functional.
parent 63d33692
......@@ -493,7 +493,7 @@ class QUrlPrinter:
def to_string(self):
try:
return self.val['d']['encodedOriginal']
except RuntimeError, error:
except RuntimeError:
#if no debug information is avaliable for Qt, try guessing the correct address for encodedOriginal
#problem with this is that if QUrlPrivate members get changed, this fails
offset = gdb.lookup_type('int').sizeof
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment