Skip to content
Snippets Groups Projects
Commit c897263e authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

[dkirov] When .so modules are loaded from module path there is no need to do extra checks.

parent b2882641
No related branches found
No related tags found
No related merge requests found
......@@ -44,13 +44,10 @@ METACONTACTS_ARRIVED = 'metacontacts_arrived'
PRIVACY_ARRIVED = 'privacy_arrived'
HAS_IDLE = True
try:
import common.idle as idle # when we launch gajim from sources
import idle
except:
try:
import idle # when Gajim is installed
except:
gajim.log.debug(_('Unable to load idle module'))
HAS_IDLE = False
gajim.log.debug(_('Unable to load idle module'))
HAS_IDLE = False
class ConnectionBytestream:
def __init__(self):
......
......@@ -33,13 +33,10 @@ STATE_AWAKE = 'awake'
SUPPORTED = True
try:
import common.idle as idle # when we launch gajim from sources
import idle
except:
try:
import idle # when Gajim is installed
except:
gajim.log.debug('Unable to load idle module')
SUPPORTED = False
gajim.log.debug('Unable to load idle module')
SUPPORTED = False
class Sleepy:
......
......@@ -42,13 +42,10 @@ VCARD_ARRIVED = 'vcard_arrived'
AGENT_REMOVED = 'agent_removed'
HAS_IDLE = True
try:
import common.idle as idle # when we launch gajim from sources
import idle
except:
try:
import idle # when Gajim is installed
except:
gajim.log.debug(_('Unable to load idle module'))
HAS_IDLE = False
gajim.log.debug(_('Unable to load idle module'))
HAS_IDLE = False
class ConnectionBytestream:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment