fix __import__ calls
This commit is contained in:
parent
fb6240f1c5
commit
078abc9b7a
|
@ -158,7 +158,7 @@ except ImportError:
|
||||||
|
|
||||||
HAVE_GPG = True
|
HAVE_GPG = True
|
||||||
try:
|
try:
|
||||||
__import__('gnupg', globals(), locals(), [], -1)
|
__import__('gnupg', globals(), locals(), [], 0)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
HAVE_GPG = False
|
HAVE_GPG = False
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -200,7 +200,7 @@ def get_storage():
|
||||||
global GnomeKeyring
|
global GnomeKeyring
|
||||||
try:
|
try:
|
||||||
gir = __import__('gi.repository', globals(), locals(),
|
gir = __import__('gi.repository', globals(), locals(),
|
||||||
['GnomeKeyring'], -1)
|
['GnomeKeyring'], 0)
|
||||||
GnomeKeyring = gir.GnomeKeyring
|
GnomeKeyring = gir.GnomeKeyring
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue