[PATCH v1 11/16] Py2/3 compliant tools/gdb/python/classic.py

Anmol mishra anmol.j2020 at gmail.com
Wed Mar 18 12:19:21 UTC 2020


From: Anmol Mishra <anmol.j2020 at gmail.com>

---
 tools/gdb/python/classic.py | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

diff --git a/tools/gdb/python/classic.py b/tools/gdb/python/classic.py
index b5aacf8..494eaea 100644
--- a/tools/gdb/python/classic.py
+++ b/tools/gdb/python/classic.py
@@ -31,18 +31,22 @@
 # RTEMS Classic API Support
 #
 
+from __future__ import print_function
+from __future__ import absolute_import
+
 import gdb
 import itertools
 import re
 #ToDo This shouldn't be here
-import helper
-
-import heaps
-import mutex
-import objects
-import supercore
-import threads
-import watchdog
+
+from . import helper
+
+from . import heaps
+from . import mutex
+from . import objects
+from . import supercore
+from . import threads
+from . import watchdog
 
 class attribute:
     """The Classic API attribute."""
-- 
2.21.0 (Apple Git-122.2)



More information about the devel mailing list