summaryrefslogtreecommitdiff
path: root/qutebrowser/mainwindow/tabbedbrowser.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-07-28 17:21:58 +0200
committerFlorian Bruhin <me@the-compiler.org>2020-07-28 17:21:58 +0200
commit67a853aacd5ac84b01b0b3fa9fe39932e640475d (patch)
treea90cb3c3065b16ea4a1d631b435bde464f21cafd /qutebrowser/mainwindow/tabbedbrowser.py
parent8dd029966899207cf9aad87e27fbb7e0ab811b29 (diff)
downloadqutebrowser-67a853aacd5ac84b01b0b3fa9fe39932e640475d.tar.gz
qutebrowser-67a853aacd5ac84b01b0b3fa9fe39932e640475d.zip
Make UndoEntry/WindowUndoEntry private
Diffstat (limited to 'qutebrowser/mainwindow/tabbedbrowser.py')
-rw-r--r--qutebrowser/mainwindow/tabbedbrowser.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/qutebrowser/mainwindow/tabbedbrowser.py b/qutebrowser/mainwindow/tabbedbrowser.py
index c953b3e6c..20169c4aa 100644
--- a/qutebrowser/mainwindow/tabbedbrowser.py
+++ b/qutebrowser/mainwindow/tabbedbrowser.py
@@ -39,7 +39,7 @@ from qutebrowser.misc import quitter
@attr.s
-class UndoEntry:
+class _UndoEntry:
"""Information needed for :undo."""
@@ -159,7 +159,7 @@ class TabbedBrowser(QWidget):
_tab_insert_idx_left: Where to insert a new tab with
tabs.new_tab_position set to 'prev'.
_tab_insert_idx_right: Same as above, for 'next'.
- undo_stack: List of lists of UndoEntry objects of closed tabs.
+ undo_stack: List of lists of _UndoEntry objects of closed tabs.
is_shutting_down: Whether we're currently shutting down.
_local_marks: Jump markers local to each page
_global_marks: Jump markers used across all pages
@@ -226,7 +226,7 @@ class TabbedBrowser(QWidget):
# line.
self.undo_stack = (
collections.deque()
- ) # type: typing.MutableSequence[typing.MutableSequence[UndoEntry]]
+ ) # type: typing.MutableSequence[typing.MutableSequence[_UndoEntry]]
self._update_stack_size()
self._filter = signalfilter.SignalFilter(win_id, self)
self._now_focused = None
@@ -471,8 +471,8 @@ class TabbedBrowser(QWidget):
except browsertab.WebTabError:
pass # special URL
else:
- entry = UndoEntry(tab.url(), history_data, idx,
- tab.data.pinned)
+ entry = _UndoEntry(tab.url(), history_data, idx,
+ tab.data.pinned)
if new_undo or not self.undo_stack:
self.undo_stack.append([entry])
else: