Debugger: Start standardization on single quotes for Python strings

Looks a bit cleaner.

Change-Id: I0bda173a4a8e12419d2b5914b83b54162a453927
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2016-10-07 11:49:51 +02:00
parent 93fa6ebc6d
commit 0722b82560
2 changed files with 492 additions and 490 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -26,7 +26,7 @@
from dumper import *
def qdump__cv__Size_(d, value):
d.putValue("(%s, %s)" % (value[0].display(), value[1].display()))
d.putValue('(%s, %s)' % (value[0].display(), value[1].display()))
d.putPlainChildren(value)
def qform__cv__Mat():
@@ -35,7 +35,7 @@ def qform__cv__Mat():
def qdump__cv__Mat(d, value):
(flag, dims, rows, cols, data, refcount, datastart, dataend,
datalimit, allocator, size, stepp) \
= value.split("iiiipppppppp")
= value.split('iiiipppppppp')
steps = d.split('p' * dims, stepp)
innerSize = 0 if dims == 0 else steps[dims - 1]
if dims != 2:
@@ -46,17 +46,17 @@ def qdump__cv__Mat(d, value):
if d.currentItemFormat() == SeparateFormat:
rs = steps[0] * innerSize
cs = cols * innerSize
dform = "arraydata:separate:int:%d::2:%d:%d" % (innerSize, cols, rows)
dform = 'arraydata:separate:int:%d::2:%d:%d' % (innerSize, cols, rows)
out = ''.join(d.readMemory(data + i * rs, cs) for i in range(rows))
d.putDisplay(dform, out)
d.putValue("(%s x %s)" % (rows, cols))
d.putValue('(%s x %s)' % (rows, cols))
if d.isExpanded():
with Children(d):
innerType = d.createType(TypeCodeIntegral, innerSize)
for i in range(rows):
for j in range(cols):
with SubItem(d, None):
d.putName("[%d,%d]" % (i, j))
d.putName('[%d,%d]' % (i, j))
addr = data + (i * steps[0] + j) * innerSize
d.putItem(d.createValue(addr, innerType))