aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2013-10-21 14:57:28 +0200
committerhjk <hjk121@nokiamail.com>2013-10-21 15:02:24 +0200
commit6f6999bee3d6b4336dccadea0415ab34f7426935 (patch)
tree31abb8565da73cc5e7623864aa7be9bac602f544
parentbec053528e48f6bea6c553632333f664f1ce5d37 (diff)
Debugger: Fix boost/time dumpers with Python 3
Change-Id: Ia93034641889603c4de57babf0117132eeb0c0cb Reviewed-by: hjk <hjk121@nokiamail.com>
-rw-r--r--share/qtcreator/debugger/boosttypes.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/qtcreator/debugger/boosttypes.py b/share/qtcreator/debugger/boosttypes.py
index 19f23724cc..1c111e453d 100644
--- a/share/qtcreator/debugger/boosttypes.py
+++ b/share/qtcreator/debugger/boosttypes.py
@@ -95,14 +95,14 @@ def qdump__boost__gregorian__date(d, value):
d.putNumChild(0)
-def qdump__boost__posix_time__ptime(d, item):
- ms = int(item["time_"]["time_count_"]["value_"]) / 1000
+def qdump__boost__posix_time__ptime(d, value):
+ ms = int(int(value["time_"]["time_count_"]["value_"]) / 1000)
d.putValue("%s/%s" % divmod(ms, 86400000), JulianDateAndMillisecondsSinceMidnight)
d.putNumChild(0)
-def qdump__boost__posix_time__time_duration(d, item):
- d.putValue(int(item["ticks_"]["value_"]) / 1000, MillisecondsSinceMidnight)
+def qdump__boost__posix_time__time_duration(d, value):
+ d.putValue(int(int(value["ticks_"]["value_"]) / 1000), MillisecondsSinceMidnight)
d.putNumChild(0)