diff options
author | Tom Tromey <tromey@adacore.com> | 2024-03-20 09:36:40 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-04-02 11:21:31 -0600 |
commit | 68982f618b28aebf47343922fb79e59ace0246eb (patch) | |
tree | f87b14d4fb9b1afa2c7fd3f1709a91a2da54f918 /gdb/python | |
parent | e2238b2e2061cffd2b7ae2894747205a56d2f775 (diff) | |
download | gdb-68982f618b28aebf47343922fb79e59ace0246eb.zip gdb-68982f618b28aebf47343922fb79e59ace0246eb.tar.gz gdb-68982f618b28aebf47343922fb79e59ace0246eb.tar.bz2 |
Prepare gdb for isort
This patch prepares gdb for isort: it adds a couple of isort marker
comments where needed, and it adds an isort clause to setup.cfg.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/lib/gdb/__init__.py | 2 | ||||
-rw-r--r-- | gdb/python/lib/gdb/dap/__init__.py | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/python/lib/gdb/__init__.py b/gdb/python/lib/gdb/__init__.py index aae0d36..9db91d8 100644 --- a/gdb/python/lib/gdb/__init__.py +++ b/gdb/python/lib/gdb/__init__.py @@ -31,6 +31,8 @@ import _gdb # Note that two indicators are needed here to silence flake8. from _gdb import * # noqa: F401,F403 +# isort: split + # Historically, gdb.events was always available, so ensure it's # still available without an explicit import. import _gdbevents as events diff --git a/gdb/python/lib/gdb/dap/__init__.py b/gdb/python/lib/gdb/dap/__init__.py index 784015d..51b9546 100644 --- a/gdb/python/lib/gdb/dap/__init__.py +++ b/gdb/python/lib/gdb/dap/__init__.py @@ -18,6 +18,8 @@ import os # This must come before other DAP imports. from . import startup +# isort: split + # Load modules that define commands. These imports intentionally # ignore the unused import warning, as these modules are being loaded # for their side effects -- namely, registering DAP commands with the @@ -36,6 +38,7 @@ from . import scopes # noqa: F401 from . import sources # noqa: F401 from . import threads # noqa: F401 +# isort: split from .server import Server |