Debugger: Rename local 'bytes' to 'rawBytes' variable in dumper

'bytes' has special meaning in Python.

Change-Id: I9ff7c56488c9d29e42b2c7a12e40b45815be2a76
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-04-02 12:41:26 +02:00
parent 147dad8944
commit afcf2afe5a

View File

@@ -1533,16 +1533,16 @@ class DumperBase:
def extractPointer(self, thing, offset = 0): def extractPointer(self, thing, offset = 0):
if isinstance(thing, int): if isinstance(thing, int):
bytes = self.extractBlob(thing, self.ptrSize()).toBytes() rawBytes = self.extractBlob(thing, self.ptrSize()).toBytes()
elif sys.version_info[0] == 2 and isinstance(thing, long): elif sys.version_info[0] == 2 and isinstance(thing, long):
bytes = self.extractBlob(thing, self.ptrSize()).toBytes() rawBytes = self.extractBlob(thing, self.ptrSize()).toBytes()
elif isinstance(thing, Blob): elif isinstance(thing, Blob):
bytes = thing.toBytes() rawBytes = thing.toBytes()
else: else:
# Assume it's a (backend specific) Value. # Assume it's a (backend specific) Value.
bytes = self.toBlob(thing).toBytes() rawBytes = self.toBlob(thing).toBytes()
code = "I" if self.ptrSize() == 4 else "Q" code = "I" if self.ptrSize() == 4 else "Q"
return struct.unpack_from(code, bytes, offset)[0] return struct.unpack_from(code, rawBytes, offset)[0]
# Parses a..b and a.(s).b # Parses a..b and a.(s).b