[PATCH v1 13/16] Py2/3 compliant tools/gdb/python/rbtrees.py
Anmol mishra
anmol.j2020 at gmail.com
Wed Mar 18 12:19:23 UTC 2020
From: Anmol Mishra <anmol.j2020 at gmail.com>
---
tools/gdb/python/rbtrees.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tools/gdb/python/rbtrees.py b/tools/gdb/python/rbtrees.py
index 2e4c9e7..ace598c 100644
--- a/tools/gdb/python/rbtrees.py
+++ b/tools/gdb/python/rbtrees.py
@@ -31,6 +31,8 @@
# RTEMS Red/Black Tree Support
#
+from __future__ import print_function
+
import gdb
rbt_left = 0
@@ -49,7 +51,7 @@ class node:
self.node_ptr = node_ptr
self.node_val = None
if node_ptr != 0:
- print '}}}}'
+ print('}}}}')
self.node_val = node_ptr.dereference()
def __str__(self):
@@ -138,7 +140,7 @@ class node:
def to_string(self):
if self.null():
return 'NULL'
- print ']]] here'
+ print('}}}}')
return 'Parent:%s Child:%s Color:%s' % (self.node_val['parent'],
self.node_val['child'],
self.node_val['color'])
--
2.21.0 (Apple Git-122.2)
More information about the devel
mailing list