Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'python/src/tcf/services/memorymap.py')
-rw-r--r--python/src/tcf/services/memorymap.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/python/src/tcf/services/memorymap.py b/python/src/tcf/services/memorymap.py
index db8ef260a..d2693787a 100644
--- a/python/src/tcf/services/memorymap.py
+++ b/python/src/tcf/services/memorymap.py
@@ -1,5 +1,5 @@
# *****************************************************************************
-# * Copyright (c) 2011, 2013-2014 Wind River Systems, Inc. and others.
+# * Copyright (c) 2011, 2013-2014, 2016 Wind River Systems, Inc. and others.
# * All rights reserved. This program and the accompanying materials
# * are made available under the terms of the Eclipse Public License v1.0
# * which accompanies this distribution, and is available at
@@ -114,6 +114,7 @@ MemoryRegion
:members:
"""
+from .. import compat
from .. import services
NAME = "MemoryMap"
@@ -148,7 +149,7 @@ class MemoryRegion(object):
# <address> is an integer, <region> is a MemoryRegion object
if address in region:
- print address
+ print(address)
:param props: Properties to initialise memory region with. See
`Properties`_.
@@ -265,9 +266,9 @@ class MemoryRegion(object):
res += PROP_FILE_NAME + '=' + str(self._props.get(PROP_FILE_NAME))
res += ', ' + PROP_ID + '=' + str(self._props.get(PROP_ID))
addr = self._props.get(PROP_ADDRESS)
- if isinstance(addr, int):
+ if isinstance(addr, compat.inttype):
res += ', ' + PROP_ADDRESS + '=0x{0:08x}'.format(addr)
- elif isinstance(addr, long):
+ elif isinstance(addr, compat.longtype):
res += ', ' + PROP_ADDRESS + '=0x{0:016x}'.format(addr)
else:
res += ', ' + PROP_ADDRESS + '=' + str(addr)

Back to the top