mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 00:48:41 +00:00
[Docs] Fix Sphinx AutoDoc failing with gdk mask operation
The creation of a new mask from two gdk mask is causing a TypeError, likely related to the mocking of gdk in Sphinx conf.
This commit is contained in:
parent
ee196f5035
commit
7d120690ab
1 changed files with 5 additions and 1 deletions
|
@ -26,7 +26,11 @@ from deluge.ui.gtkui.removetorrentdialog import RemoveTorrentDialog
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
CTRL_ALT_MASK = CONTROL_MASK | MOD1_MASK
|
try:
|
||||||
|
CTRL_ALT_MASK = CONTROL_MASK | MOD1_MASK
|
||||||
|
except TypeError:
|
||||||
|
# Sphinx AutoDoc has a mock issue with gtk.gdk masks.
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def str_nocase_sort(model, iter1, iter2, data):
|
def str_nocase_sort(model, iter1, iter2, data):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue