mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 04:24:27 +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
@ -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…
x
Reference in New Issue
Block a user