Run isort

This commit is contained in:
Tom Tromey
2023-11-22 21:06:37 -07:00
parent 602c144f6e
commit 233a39a424
17 changed files with 76 additions and 62 deletions

View File

@@ -19,9 +19,8 @@ self_dir = os.path.abspath(os.path.dirname(__file__))
# Import anything that defines a command or parameter. # Import anything that defines a command or parameter.
import gui.commands import gui.commands
import gui.params
import gui.toplevel
import gui.framecache import gui.framecache
# Hooks in to gdb. # Hooks in to gdb.
import gui.notify import gui.notify
import gui.params
import gui.toplevel

View File

@@ -16,6 +16,7 @@
# Adapt to gdb issues. # Adapt to gdb issues.
import gdb import gdb
import gui.params import gui.params
# The rule for adding a new entry here is that the bug must have some # The rule for adding a new entry here is that the bug must have some

View File

@@ -14,8 +14,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import gdb import gdb
import gui.events
import gui.adapt import gui.adapt
import gui.events
# This maps from (FILENAME,LINE) to a set of breakpoints referencing # This maps from (FILENAME,LINE) to a set of breakpoints referencing
# that file/line. Then we emit events when entries are created or # that file/line. Then we emit events when entries are created or

View File

@@ -13,18 +13,20 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import re
import gdb import gdb
import gui.startup
import gui.source import gui.adapt
import gui.stack import gui.display
import gui.logwindow
import gui.toplevel
import gui.dprintf import gui.dprintf
import gui.events import gui.events
import gui.display
import gui.gdbutil import gui.gdbutil
import gui.adapt import gui.logwindow
import re import gui.source
import gui.stack
import gui.startup
import gui.toplevel
from gui.startup import in_gtk_thread from gui.startup import in_gtk_thread

View File

@@ -15,14 +15,16 @@
# Log window. # Log window.
import gdb
import gui.updatewindow
import gui.startup
from gi.repository import Gtk, Pango
import functools import functools
from gui.startup import in_gdb_thread, in_gtk_thread from difflib import Differ, SequenceMatcher
import gdb
from gi.repository import Gtk, Pango
import gui.events import gui.events
from difflib import SequenceMatcher, Differ import gui.startup
import gui.updatewindow
from gui.startup import in_gdb_thread, in_gtk_thread
# FIXME: TO DO: # FIXME: TO DO:
# * highlight the changes # * highlight the changes

View File

@@ -16,6 +16,7 @@
# dprintf-like machinery. # dprintf-like machinery.
import gdb import gdb
import gui.logwindow import gui.logwindow
from gui.startup import in_gdb_thread from gui.startup import in_gdb_thread

View File

@@ -14,10 +14,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import gdb import gdb
import gui.events
import gui.adapt
import gui.invoker
import gui.adapt
import gui.events
import gui.invoker
from gui.startup import in_gdb_thread from gui.startup import in_gdb_thread
_last_selected_frame = None _last_selected_frame = None

View File

@@ -14,6 +14,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import gdb import gdb
from gui.startup import in_gdb_thread from gui.startup import in_gdb_thread

View File

@@ -15,12 +15,13 @@
# Log window. # Log window.
import gdb
import gui.toplevel
import gui.startup
import functools import functools
import gdb
from gi.repository import Gtk, Pango from gi.repository import Gtk, Pango
import gui.startup
import gui.toplevel
from gui.startup import in_gtk_thread from gui.startup import in_gtk_thread
default_log_window = None default_log_window = None

View File

@@ -15,13 +15,14 @@
# Notifications # Notifications
import gdb
import gui.params
import gui.startup
import time import time
import gdb
from gi.repository import Notify from gi.repository import Notify
from gui.startup import in_gtk_thread, in_gdb_thread
import gui.params
import gui.startup
from gui.startup import in_gdb_thread, in_gtk_thread
_initialized = False _initialized = False

View File

@@ -17,12 +17,12 @@
import gdb import gdb
import gdb.prompt import gdb.prompt
from gi.repository import GtkSource, Pango
import gui.startup import gui.startup
import gui.storage import gui.storage
import gui.toplevel import gui.toplevel
from gui.startup import in_gdb_thread, in_gtk_thread from gui.startup import in_gdb_thread, in_gtk_thread
from gi.repository import GtkSource, Pango
class _SetBase(gdb.Command): class _SetBase(gdb.Command):

View File

@@ -15,21 +15,22 @@
# Source view. # Source view.
import gdb
import gui
import gui.updatewindow
from gui.invoker import Invoker
from gui.framecache import FrameCommandInvoker
import gui.startup
from gui.startup import in_gdb_thread, in_gtk_thread
import gui.toplevel
import gui.events
import os.path import os.path
import gdb
from gi.repository import Gdk, GdkPixbuf, GObject, Gtk, GtkSource, Pango
import gui
import gui.bpcache
import gui.events
import gui.gdbutil import gui.gdbutil
import gui.params import gui.params
import gui.bpcache import gui.startup
import gui.toplevel
from gi.repository import Gtk, GtkSource, GObject, Gdk, GdkPixbuf, Pango import gui.updatewindow
from gui.framecache import FrameCommandInvoker
from gui.invoker import Invoker
from gui.startup import in_gdb_thread, in_gtk_thread
class BufferManager: class BufferManager:

View File

@@ -16,16 +16,16 @@
# Stack view. # Stack view.
import gdb import gdb
import gdb.frames
import gdb.FrameDecorator import gdb.FrameDecorator
import gdb.FrameIterator import gdb.FrameIterator
import gui.updatewindow import gdb.frames
import gui.startup from gi.repository import Gtk
import gui.params
import gui.params
import gui.startup
import gui.updatewindow
from gui.framecache import FrameCommandInvoker from gui.framecache import FrameCommandInvoker
from gui.startup import in_gdb_thread, in_gtk_thread from gui.startup import in_gdb_thread, in_gtk_thread
from gi.repository import Gtk
def format_frame(frame): def format_frame(frame):

View File

@@ -13,20 +13,21 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import gdb
import threading
import queue
import os import os
import os.path import os.path
import gui import queue
import threading
import gdb
import gi import gi
import gui
gi.require_version("Gtk", "3.0") gi.require_version("Gtk", "3.0")
gi.require_version("GtkSource", "3.0") gi.require_version("GtkSource", "3.0")
gi.require_version("Notify", "0.7") gi.require_version("Notify", "0.7")
from gi.repository import Gtk, Gdk, GObject, GtkSource, GLib, GdkPixbuf from gi.repository import Gdk, GdkPixbuf, GLib, GObject, Gtk, GtkSource
(read_pipe, write_pipe) = os.pipe() (read_pipe, write_pipe) = os.pipe()

View File

@@ -15,11 +15,12 @@
# Storage management. # Storage management.
from gi.repository import GLib
import os
import errno
import configparser
import atexit import atexit
import configparser
import errno
import os
from gi.repository import GLib
class StorageManager: class StorageManager:

View File

@@ -15,14 +15,15 @@
# Toplevel handling. # Toplevel handling.
import threading
import gdb import gdb
from gi.repository import Pango
import gui.gdbutil import gui.gdbutil
import gui.params import gui.params
import gui.startup import gui.startup
import gui.storage import gui.storage
import threading
from gi.repository import Pango
from gui.startup import in_gdb_thread, in_gtk_thread from gui.startup import in_gdb_thread, in_gtk_thread

View File

@@ -15,11 +15,12 @@
# Auto-updating window. # Auto-updating window.
from gui.toplevel import Toplevel import gdb
import gui.events
import gui.startup import gui.startup
from gui.startup import in_gdb_thread, in_gtk_thread from gui.startup import in_gdb_thread, in_gtk_thread
import gdb from gui.toplevel import Toplevel
import gui.events
class UpdateWindow(Toplevel): class UpdateWindow(Toplevel):