forked from qutebrowser/qutebrowser
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: port19 <[email protected]>
- Loading branch information
Showing
5 changed files
with
9 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,6 @@ | ||
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: | ||
|
||
# Copyright 2014-2018 Giuseppe Stelluto (pinusc) <[email protected]> | ||
# | ||
# This file is part of qutebrowser. | ||
# | ||
# qutebrowser is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# qutebrowser is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# SPDX-FileCopyrightText: Giuseppe Stelluto (pinusc) <[email protected]> | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with qutebrowser. If not, see <https://www.gnu.org/licenses/>. | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
"""Subclass of TabbedBrowser to provide tree-tab functionality.""" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,6 @@ | ||
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: | ||
|
||
# Copyright 2014-2018 Giuseppe Stelluto (pinusc) <[email protected]> | ||
# | ||
# This file is part of qutebrowser. | ||
# | ||
# qutebrowser is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# qutebrowser is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# SPDX-FileCopyrightText: Giuseppe Stelluto (pinusc) <[email protected]> | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with qutebrowser. If not, see <https://www.gnu.org/licenses/>. | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
"""Extension of TabWidget for tree-tab functionality.""" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,6 @@ | ||
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: | ||
|
||
# Copyright 2019 Giuseppe Stelluto (pinusc) <[email protected]> | ||
# | ||
# This file is part of qutebrowser. | ||
# | ||
# qutebrowser is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# qutebrowser is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# SPDX-FileCopyrightText: Giuseppe Stelluto (pinusc) <[email protected]> | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with qutebrowser. If not, see <https://www.gnu.org/licenses/>. | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
"""Tree library for tree-tabs. | ||
|
@@ -138,7 +123,7 @@ def parent(self) -> Optional['Node[T]']: | |
def parent(self, value: 'Node[T]') -> None: | ||
"""Set parent property. Also adds self to value.children.""" | ||
# pylint: disable=protected-access | ||
assert(value is None or isinstance(value, Node)) | ||
assert (value is None or isinstance(value, Node)) | ||
if self.__parent: | ||
self.__parent.__disown(self) | ||
self.__parent = None | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,6 @@ | ||
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: | ||
|
||
# Copyright 2019 Florian Bruhin (The-Compiler) <[email protected]> | ||
# | ||
# This file is part of qutebrowser. | ||
# | ||
# qutebrowser is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# qutebrowser is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# SPDX-FileCopyrightText: Florian Bruhin (The-Compiler) <[email protected]> | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with qutebrowser. If not, see <https://www.gnu.org/licenses/>. | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
"""Tests for misc.notree library.""" | ||
import pytest | ||
|
||
|