[dkirov] When .so modules are loaded from module path there is no need to do extra checks.
This commit is contained in:
parent
b288264135
commit
c897263ed0
|
@ -44,13 +44,10 @@ METACONTACTS_ARRIVED = 'metacontacts_arrived'
|
||||||
PRIVACY_ARRIVED = 'privacy_arrived'
|
PRIVACY_ARRIVED = 'privacy_arrived'
|
||||||
HAS_IDLE = True
|
HAS_IDLE = True
|
||||||
try:
|
try:
|
||||||
import common.idle as idle # when we launch gajim from sources
|
import idle
|
||||||
except:
|
except:
|
||||||
try:
|
gajim.log.debug(_('Unable to load idle module'))
|
||||||
import idle # when Gajim is installed
|
HAS_IDLE = False
|
||||||
except:
|
|
||||||
gajim.log.debug(_('Unable to load idle module'))
|
|
||||||
HAS_IDLE = False
|
|
||||||
|
|
||||||
class ConnectionBytestream:
|
class ConnectionBytestream:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -33,13 +33,10 @@ STATE_AWAKE = 'awake'
|
||||||
|
|
||||||
SUPPORTED = True
|
SUPPORTED = True
|
||||||
try:
|
try:
|
||||||
import common.idle as idle # when we launch gajim from sources
|
import idle
|
||||||
except:
|
except:
|
||||||
try:
|
gajim.log.debug('Unable to load idle module')
|
||||||
import idle # when Gajim is installed
|
SUPPORTED = False
|
||||||
except:
|
|
||||||
gajim.log.debug('Unable to load idle module')
|
|
||||||
SUPPORTED = False
|
|
||||||
|
|
||||||
class Sleepy:
|
class Sleepy:
|
||||||
|
|
||||||
|
|
|
@ -42,13 +42,10 @@ VCARD_ARRIVED = 'vcard_arrived'
|
||||||
AGENT_REMOVED = 'agent_removed'
|
AGENT_REMOVED = 'agent_removed'
|
||||||
HAS_IDLE = True
|
HAS_IDLE = True
|
||||||
try:
|
try:
|
||||||
import common.idle as idle # when we launch gajim from sources
|
import idle
|
||||||
except:
|
except:
|
||||||
try:
|
gajim.log.debug(_('Unable to load idle module'))
|
||||||
import idle # when Gajim is installed
|
HAS_IDLE = False
|
||||||
except:
|
|
||||||
gajim.log.debug(_('Unable to load idle module'))
|
|
||||||
HAS_IDLE = False
|
|
||||||
|
|
||||||
|
|
||||||
class ConnectionBytestream:
|
class ConnectionBytestream:
|
||||||
|
|
Loading…
Reference in New Issue