[PATCH v1 05/16] Py2/3 compliant tools/gdb/python/main.py

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


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

---
 tools/gdb/python/main.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tools/gdb/python/main.py b/tools/gdb/python/main.py
index 6fb7c54..945fb69 100644
--- a/tools/gdb/python/main.py
+++ b/tools/gdb/python/main.py
@@ -3,9 +3,11 @@
 #
 # main
 
+from __future__ import absolute_import
+
 import gdb
-import pretty
-import rtems
+from . import pretty
+from . import rtems
 
 gdb.pretty_printers = []
 gdb.pretty_printers.append(pretty.lookup_function)
-- 
2.21.0 (Apple Git-122.2)



More information about the devel mailing list