mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-02 14:44:21 +00:00
minor code cleanup
This commit is contained in:
parent
7e86b41f92
commit
b66f313c2d
@ -30,7 +30,6 @@ try:
|
|||||||
import dbus
|
import dbus
|
||||||
bus = dbus.SessionBus()
|
bus = dbus.SessionBus()
|
||||||
dbus_fileman = bus.get_object("org.freedesktop.FileManager1", "/org/freedesktop/FileManager1")
|
dbus_fileman = bus.get_object("org.freedesktop.FileManager1", "/org/freedesktop/FileManager1")
|
||||||
|
|
||||||
except:
|
except:
|
||||||
dbus_fileman = None
|
dbus_fileman = None
|
||||||
|
|
||||||
|
@ -15,9 +15,7 @@ import warnings
|
|||||||
import gobject
|
import gobject
|
||||||
import gtk
|
import gtk
|
||||||
from twisted.internet import gtk2reactor
|
from twisted.internet import gtk2reactor
|
||||||
|
reactor = gtk2reactor.install() # Install twisted reactor, before any other modules import reactor.
|
||||||
# Install the twisted reactor
|
|
||||||
reactor = gtk2reactor.install()
|
|
||||||
|
|
||||||
import deluge.common
|
import deluge.common
|
||||||
import deluge.component as component
|
import deluge.component as component
|
||||||
|
@ -21,9 +21,6 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
get_version = None
|
get_version = None
|
||||||
|
|
||||||
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
|
|
||||||
on_travis = os.environ.get('TRAVIS', None) == 'true'
|
|
||||||
|
|
||||||
# If your extensions are in another directory, add it here. If the directory
|
# If your extensions are in another directory, add it here. If the directory
|
||||||
# is relative to the documentation root, use os.path.abspath to make it
|
# is relative to the documentation root, use os.path.abspath to make it
|
||||||
# absolute, like shown here.
|
# absolute, like shown here.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user