[PATCH v1 04/16] Py2/3 compliant tools/gdb/python/rtems.py

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


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

---
 tools/gdb/python/rtems.py | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/tools/gdb/python/rtems.py b/tools/gdb/python/rtems.py
index a097797..43232a6 100644
--- a/tools/gdb/python/rtems.py
+++ b/tools/gdb/python/rtems.py
@@ -31,15 +31,18 @@
 # RTEMS Pretty Printers
 #
 
+from __future__ import print_function
+from __future__ import absolute_import
+
 import gdb
 import re
 
-import objects
-import threads
-import chains
-import watchdog
-import supercore
-import classic
+from . import objects
+from . import threads
+from . import chains
+from . import watchdog
+from . import supercore
+from . import classic
 
 
 class rtems(gdb.Command):
-- 
2.21.0 (Apple Git-122.2)



More information about the devel mailing list