[6/9] Suppress star import errors
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_build--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-arm |
success
|
Testing passed
|
Commit Message
flake8 warns about the "from _gdb.disassembler import *" line in
disassembler.py, and a similar line from __init__.py. These line are
needed to re-export names from the corresponding C++ module, so this
patch applies the appropriate "noqa" flags.
---
gdb/python/lib/gdb/__init__.py | 3 ++-
gdb/python/lib/gdb/disassembler.py | 5 +++--
2 files changed, 5 insertions(+), 3 deletions(-)
@@ -26,7 +26,8 @@ if sys.version_info >= (3, 4):
else:
from imp import reload
-from _gdb import *
+# Note that two indicators are needed here to silence flake8.
+from _gdb import * # noqa: F401,F403
# Historically, gdb.events was always available, so ensure it's
# still available without an explicit import.
@@ -19,8 +19,9 @@ import gdb
import _gdb.disassembler
# Re-export everything from the _gdb.disassembler module, which is
-# defined within GDB's C++ code.
-from _gdb.disassembler import *
+# defined within GDB's C++ code. Note that two indicators are needed
+# here to silence flake8.
+from _gdb.disassembler import * # noqa: F401,F403
# Module global dictionary of gdb.disassembler.Disassembler objects.
# The keys of this dictionary are bfd architecture names, or the