From afcf2afe5a6fc5ed8cc9102082b9ba29040749fc Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 2 Apr 2015 12:41:26 +0200 Subject: [PATCH] Debugger: Rename local 'bytes' to 'rawBytes' variable in dumper 'bytes' has special meaning in Python. Change-Id: I9ff7c56488c9d29e42b2c7a12e40b45815be2a76 Reviewed-by: Christian Stenger --- share/qtcreator/debugger/dumper.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/share/qtcreator/debugger/dumper.py b/share/qtcreator/debugger/dumper.py index e8ff7ec5080..c51385ea10e 100644 --- a/share/qtcreator/debugger/dumper.py +++ b/share/qtcreator/debugger/dumper.py @@ -1533,16 +1533,16 @@ class DumperBase: def extractPointer(self, thing, offset = 0): 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): - bytes = self.extractBlob(thing, self.ptrSize()).toBytes() + rawBytes = self.extractBlob(thing, self.ptrSize()).toBytes() elif isinstance(thing, Blob): - bytes = thing.toBytes() + rawBytes = thing.toBytes() else: # 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" - return struct.unpack_from(code, bytes, offset)[0] + return struct.unpack_from(code, rawBytes, offset)[0] # Parses a..b and a.(s).b